feat: admin CLI for API key management (no admin login) #3

Merged
hzhang merged 1 commits from feat/apikey-admin-cli into master 2026-05-16 22:11:55 +00:00
Owner

apikey_cli.py operates directly on the DB (run inside the backend
container). Subcommands: create (alias required; reusing an alias
renews — same key, validity reset, reactivated, name/roles updated;
roles allowlisted; configurable --ttl-days), list (masked keys,
--show-keys to reveal), revoke (by --alias or --key).

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

apikey_cli.py operates directly on the DB (run inside the backend container). Subcommands: create (alias required; reusing an alias renews — same key, validity reset, reactivated, name/roles updated; roles allowlisted; configurable --ttl-days), list (masked keys, --show-keys to reveal), revoke (by --alias or --key). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
hzhang added 1 commit 2026-05-16 22:11:50 +00:00
apikey_cli.py operates directly on the DB (run inside the backend
container). Subcommands: create (alias required; reusing an alias
renews — same key, validity reset, reactivated, name/roles updated;
roles allowlisted; configurable --ttl-days), list (masked keys,
--show-keys to reveal), revoke (by --alias or --key).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
hzhang merged commit 9383f8cb03 into master 2026-05-16 22:11:55 +00:00
hzhang deleted branch feat/apikey-admin-cli 2026-05-16 22:11:55 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: hzhang/HangmanLab.Backend#3