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

1 Commits

Author SHA1 Message Date
67a04d67d9 feat: admin CLI for API key management (no admin login)
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>
2026-05-16 23:10:31 +01:00