secret: Name recipients by their comments in the rules
CI / Check (pull_request) Successful in 4m44s
CI / Check (push) Successful in 4m49s

Approvals could only name recipients listed in the broker's config, so
host keys showed abbreviated. The builder already evaluates the main
branch's rules; take names from the SSH keys' comments there too
(`ssh-ed25519 AAAA… shill`), which age ignores. Every path's keys
count, so a key added to a secret is named as well.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit was merged in pull request #8.
This commit is contained in:
jackos1998andClaude Opus 5.5 committed 2026-11-27 14:28:10 +00:00
1 parent 50b3103b9f
commit 9d08b5cf8f
4 files changed
+48 -5

No files matched your search

+3 -1
View File
@@ -511,7 +511,9 @@ only people should be able to push to, and the approval shows what that branch s
in the rules, added or removed; or that the path isn't in the rules.
- Only the protected branch's Nix is evaluated, never a requester's commit, so this doesn't need
the builder approval.
- `secrets.names` labels well-known keys (such as people's); other keys are shown abbreviated.
- Keys are labelled by name from `secrets.names` (well-known keys, such as people's), then from
SSH keys' comments anywhere in the branch's rules (`ssh-ed25519 AAAA… shill`, which age
ignores). Other keys are shown abbreviated.
- **The broker's own key.** The broker always adds it to the recipients, and says so, so it can
change the file later.
- **Sensitive requests.** Requests that read a secret, change who can read one or name content as