allod secret rotate: resolve the deploy checkout through the inventory registry instead of printing ~/work/allod/deploy #211
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
allod/tools#211
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
allod secret rotateprints its deploy-flake steps with a hardcoded~/work/allod/deploy(cmd/allod/secret_rotate.go, theprintRebuildCommandline and the "Update the deploy flake lock" step), so on a deployment whose composition root lives elsewhere the operator is told to bump the wrong lock and rebuild from the wrong flake. The secrets checkout on the same command is already resolved through the inventory's repository registry withINVENTORYhonoured; the deploy checkout should be resolved the same way.Primary goals:
deployentry (~/work/<checkout>), falling back toallod/deployonly when the registry does not name one, exactly asresolveSecretsCheckoutdoes for secrets.Current state and specifics
Seen on a first
--dry-runafter the value-template migration: every other line (group, targets, verify command,refresh-local-authstep) was correct and read from the registry; only the two deploy lines named the template path. The operator's real composition root was one directory up.Scope
In: the two printed paths and a test. Out: the rest of the printed step sequence, which is right.
Refs allod/secrets#23, allod/nexus#52.