credential-inventory: sabotage fixture for the pending and active file rules #20
Labels
No labels
blocked
bug
decision
duplicate
enhancement
handoff
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/secrets#20
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?
Give the
credential-inventorycheck a sabotage fixture so a regression in a rule the template data never exercises cannot pass green.Primary goals:
testing.md, the check proves it can fail: a fixture inventory with apendingentry whose file is present, and anactiveentry whose file is absent, each rejected.Current state and specifics
flake.nix'scredential-inventory(allod/secrets#19 added thependingarm at therunCommandbody) evaluates the repository's owncredentials.nixandsecrets.nix. The public template has nopendingentry, so the branch that requires the age file absent in that state never runs innix flake check; the only evidence it works is a manual sabotage recorded in that PR's body. Thepi-credential-registrycheck in the same file shows the shape to copy: arejectshelper over fixture data with one sabotage per rule. A cross-family review of allod/secrets#19 raised this (low severity); the same review's other finding, that${self}cannot see an untracked ciphertext, is the ordinary flake-source rule and not a defect.Scope
In: the parameterization and two fixture sabotages for the file-presence rule. Out: the other inventory assertions, which can gain fixtures the same way later, and any change to the rules themselves.