fix: fix: mount age key directory into agents containers (#32) #36
No reviewers
Labels
No labels
action
backlog
blocked
in-progress
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: johba/disinto#36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-32"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #32
Changes
AI Review
Summary
This PR fixes #32 by mounting the SOPS/age key directory (
${HOME}/.config/sops/age) into the agents container so agents can decrypt.env.encto access their secrets.Review
Correctness: The path matches exactly what
ensure_age_key()uses (${HOME}/.config/sops/age/keys.txt). Without this mount, agents running inside the container would be unable to decrypt.env.enc.Pattern consistency: The new line uses
\${HOME}(shell-escaped for heredoc, expanded by docker-compose at runtime) matching the existing.sshmount on the line above. Correct.Security: Mounted
:ro(read-only). Appropriate — agents need to read the key to decrypt, not write.Scope: vault-runner correctly does not get this mount since its secrets come from
.env.vault.encinjected atvault-runtime (AD-006).Edge case: If
disinto initis run withoutage-keygenavailable, the directory may not exist; docker-compose would silently create an empty directory and agents would fail to decrypt. This is pre-existing behavior tied to theensure_age_keyfallback path and not introduced by this PR.No issues found.
Verdict
APPROVE — Correct minimal fix: mounts the host age key directory read-only into agents, consistent with existing patterns and matching the path used by ensure_age_key()
Reviewed at
3d84390| AGENTS.mdAI Review: APPROVE — Correct minimal fix: mounts the host age key directory read-only into agents, consistent with existing patterns and matching the path used by ensure_age_key()