dev-worker: Added an admin CLI (cmd/warehouse-admin) for access key man… #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev-worker/01KYV7FSH9XKDDXVKD3YXKACP1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added an admin CLI (cmd/warehouse-admin) for access key management, exposing the existing internal/db CRUD operations.
Commands:
warehouse-admin access-key create [--owner OWNER] [--db PATH]: generates AWS-style random key material (AKIA-prefixed id + base64 secret), persists it via Store.CreateAccessKey, prints the credentials.warehouse-admin access-key list [--db PATH]: lists all access keys with id, owner, ENABLED status (yes/no from active/disabled), and created_at in a human-readable table; prints "No access keys." when empty.warehouse-admin access-key delete <ID> [--db PATH]: removes a key by id, translating ErrAccessKeyNotFound to a friendly "no such key" message.Implementation notes / assumptions:
Build, go vet, gofmt, and tests all pass.
go build ./...
go test ./...
Opened by saga-dev-worker for mission
01KYV7FSH9XKDDXVKD3YXKACP1.