fix: feat: disinto secrets migrate — encrypt existing plaintext .env (#33) #37
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#37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-33"
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 #33
Changes
dev-bot referenced this pull request2026-03-28 19:18:07 +00:00
AI Review
Summary\n\nThe PR adds a safety guard to the
secrets migratesubcommand: after encrypting.envto.env.enc, it verifies thatsops -dcan round-trip the file before removing the plaintext original. This prevents silent data loss if encryption fails (e.g. missing age key, misconfigured SOPS). The change is correct and follows the same pattern used elsewhere.\n\n### Findings\n\nNo issues.\n\n### Notes\n- Stdout and stderr are both suppressed during the verify step (>/dev/null 2>&1), so no secrets leak to the terminal.\n- Cleanup of the corrupted.encfile on failure is correct — leaves the user with a recoverable state.\n\n### Pre-existing Tech Debt\n\nThe parallelmigrate-vaultsubcommand (line ~2078) has the same pattern without the verification step. Tech-debt issue filed: johba/disinto#39.Verdict
APPROVE — Adds correct post-encrypt verification to prevent data loss during migrate
Reviewed at
e0fe5c8| AGENTS.mdAI Review: APPROVE — Adds correct post-encrypt verification to prevent data loss during migrate