credential-profiles: accept only a template as the local auth refresh source #77
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/archetypes!77
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/local-auth-template-only"
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
The
credential-profilescheck now accepts alocal_auth_refreshsource credential only when it is a value template that renders one credential-store line; the old branch that also accepted a legacy entry carryingformat = "credential-store-url"is gone, and any entry carryingformatat all fails closed. Every deployed machine is unchanged: the predicate lives in a flake check, not in a module, and the registry the check reads has noformatentry left, so the check's positive path evaluates exactly as before. The full./check.shrun (28 steps) passed with the change, and the three mutation fixtures that hand the check an entry withformator without a template still fail on the named source-credential clause. If it is wrong, revert this one commit; the check goes back to accepting both shapes.Refs allod/secrets#27
Change
isCredentialStoreUrlSourceinflake.nixis now!(credential ? format) && isCredentialStoreUrlTemplate credential; its comment explains thatformatis an unknown field on the registry's current shape.formatare relabelled without the word legacy; their logic and the clause they assert on are unchanged.Risk
R2. A validator narrowing inside a check, with the fail-closed cases pinned by mutation fixtures; no module, unit, or deployed file changes; rollback is a straight revert.
Validation
./check.shin the worktree:All 28 steps passed.(1m04s). Cold cross-family review by gpt-5.5 (codex, read-only sandbox) on the diff: no findings, having readflake.nix, the local refresh fixtures, and the netrc and github-credentials consumers.