allod secret rotate: resolve the deploy checkout through the registry #212
No reviewers
Labels
No labels
blocked
bug
decision
duplicate
enhancement
help wanted
invalid
landed?
question
ready-to-merge
stale
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
allod/tools!212
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/secret-rotate-deploy-checkout"
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?
Summary
allod secret rotatenow prints its two deploy-flake steps (thecdbeforenix flake update secrets, and thenixos-rebuild switch --flakeline) against the deploy checkout named by the inventory's repository registry,~/work/<checkout>from itsdeployentry, instead of a hardcoded~/work/allod/deploy. When the registry names no deploy entry the printed path is~/work/allod/deploy, exactly as before. Nothing a machine runs changes: this command only prints steps for the operator, and the secrets checkout, group, targets, and verify lines are untouched. A new test points the registry at another checkout and pins that both printed lines follow it; the existing dry-run test keeps pinning the fallback. If it is wrong, revert this one commit; the printed path returns to the template one.Closes allod/tools#211
Change
deployCheckoutRelative()incmd/allod/secret_common.go, the same shape assecretsCheckoutRelative(): registry aliasesdeploythenallod/deploy, fallbackallod/deploy.printDeployStepsresolves it once and hands the value toprintRebuildCommand, so both printed lines read one value.docs/allod-secret.mdsaysrotateresolves the deploy checkout the same way.Risk
R1. The change is confined to two printed strings in one command, pinned by a caller-level test, with a straight revert. No secrets, host commands, or state are touched.
Validation
Run in the worktree under
nix develop:gofmt -l ./cmdprinted nothing;go vetandgo testfor./...,-tags secret,-tags site, and-tags site,secretall passed (every packageok).