secret: Name recipients by their comments in the rules #8

Merged
dev merged 1 commits from secret-recipient-names into main 2026-11-27 16:08:45 +00:00

slop secret approvals named recipients only from secrets.names in the broker's config, so host keys showed abbreviated (ssh-ed25519 …O7C+GWiK).

The builder already evaluates the main branch's rules file. It now also collects SSH keys' comments from every path's keys (ssh-ed25519 AAAA… shill → shill) and returns them in SecretContext.names; the approval labels keys with them after secrets.names. No new option: a repository opts in by commenting its keys, which age, rage and agenix ignore (slop and the broker already strip comments when parsing). Every path counts, so a key added to a secret is named too.

Only the protected branch's rules are read, as before. SecretContext gains a defaulted field; the builder and broker come from one package.

Tested: cargo test (labelling unit test; builder test that names come from master's comments, not an agent's branch), clippy.

🤖 Generated with Claude Code

`slop secret` approvals named recipients only from `secrets.names` in the broker's config, so host keys showed abbreviated (`ssh-ed25519 …O7C+GWiK`). The builder already evaluates the main branch's rules file. It now also collects SSH keys' comments from every path's keys (`ssh-ed25519 AAAA… shill` → `shill`) and returns them in `SecretContext.names`; the approval labels keys with them after `secrets.names`. No new option: a repository opts in by commenting its keys, which age, rage and agenix ignore (`slop` and the broker already strip comments when parsing). Every path counts, so a key *added* to a secret is named too. Only the protected branch's rules are read, as before. `SecretContext` gains a defaulted field; the builder and broker come from one package. Tested: `cargo test` (labelling unit test; builder test that names come from `master`'s comments, not an agent's branch), clippy. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
slop-cannon Bot added 1 commit 2026-11-27 14:28:11 +00:00
secret: Name recipients by their comments in the rules
CI / Check (pull_request) Successful in 4m44s
CI / Check (push) Successful in 4m49s
9d08b5cf8f
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>
slop-cannon Bot force-pushed secret-recipient-names from 77d8959b08 to 9d08b5cf8f 2026-11-27 14:28:11 +00:00 Compare
slop-cannon Bot changed title from secret: Name recipients from the main branch to secret: Name recipients by their comments in the rules 2026-11-27 14:28:11 +00:00
dev merged commit 9d08b5cf8f into main 2026-11-27 16:08:45 +00:00
dev deleted branch secret-recipient-names 2026-11-27 16:08:45 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dev/slop-broker#8