Encrypted files that match no sops creation rule, and stale rules for retired hosts #321
Labels
No labels
bug
enhancement
in-progress
needs-info
needs-triage
p0
ready-for-agent
ready-for-human
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/nixos#321
Loading…
Add table
Add a link
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?
Follow-up carved out of #319 (PR: /pulls/320), which deliberately left both of these alone so a pure rename stayed a pure rename.
1. Three encrypted files match no creation rule
The first two sit one directory below the deepest
hosts/web-arm/rule;utils/modules/plausible/never got a rule at all (unlike its siblingslego,alloy,attic-cache,victoriametrics). Consequence:./scripts/update-secrets-keysattempts all three andsops updatekeysfails on each, so a key rotation cannot complete cleanly. This predates #319 — the old discovery found them too.The bitwarden and nextcloud files look dead: both modules resolve their secrets through
hosts/web-arm'sdefaultSopsFile, andgrepfinds nosopsFilereference to either. They date tof86996cd("add zammad to fw vm, add web-arm machine"). If that holds, delete them.utils/modules/plausible/secrets.sops.yamlis live (utils/modules/plausible/default.nix:5,8) and needs a real rule.Verify before acting — this needs someone with the age keys, which an agent sandbox does not have.
2. Stale creation rules and key anchors for retired hosts
gpd-win4,fw-new,netboot,web-02,ldap-server-armstill havecreation_rulesentries andkeys:anchors in.sops.yaml. #319 tightened their regexes along with everything else but did not remove them, because removing a recipient is a re-encryption and wants its own review. Noteweb-02andldap-server-armstill appear in the recipient sets of live rules (utils/modules/lego/,alloy,victoriametrics,hosts/mail/,hosts/fw/vms/web/), so this is not a pure deletion — dropping them re-encrypts those files.Both parts require
sopsand the private keys, so this is likelyready-for-human.