Add ccc-keygen for secrets file generation

--create <names>  generates secrets.json with random 32-byte hex secrets
--filter <names>  extracts a subset of users into filtered-secrets.json
--input/--output  override default file paths

Removes hardcoded user/agent assumptions from secrets.example.json.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-07 20:59:25 +00:00
parent e8bbcb293f
commit 81ad722e84
3 changed files with 89 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"users": {
"agent": { "secret": "change-me-agent", "canApprove": [] },
"user": { "secret": "change-me-user", "canApprove": ["agent"] }
"<username>": { "secret": "<hex secret>", "canApprove": [] },
"<username>": { "secret": "<hex secret>", "canApprove": ["<username>"] }
}
}