Implement Local API Key Admin CLI #7

Closed
opened 2026-04-26 15:22:29 -04:00 by dohertj2 · 2 comments
Owner

Source: $file
Milestone: $currentMilestone

Labels: area:auth, type:feature, priority:p1

Deliverables:

  • local admin CLI or gateway subcommand,
  • init-db,
  • create-key,
  • list-keys,
  • revoke-key,
  • rotate-key,
  • JSON output option.

Acceptance criteria:

  • created key can authenticate,
  • listed keys never show raw secret,
  • revoked key fails authentication,
  • raw secret is printed exactly once on create/rotate.

Tests:

  • CLI parser,
  • temp DB command tests,
  • JSON redaction.
Source: $file Milestone: $currentMilestone Labels: `area:auth`, `type:feature`, `priority:p1` Deliverables: - local admin CLI or gateway subcommand, - `init-db`, - `create-key`, - `list-keys`, - `revoke-key`, - `rotate-key`, - JSON output option. Acceptance criteria: - created key can authenticate, - listed keys never show raw secret, - revoked key fails authentication, - raw secret is printed exactly once on create/rotate. Tests: - CLI parser, - temp DB command tests, - JSON redaction.
dohertj2 added this to the gateway-auth milestone 2026-04-26 15:22:29 -04:00
dohertj2 added the area:authtype:featurepriority:p1 labels 2026-04-26 15:22:29 -04:00
dohertj2 added a new dependency 2026-04-26 15:28:33 -04:00
dohertj2 added a new dependency 2026-04-26 15:28:33 -04:00
Author
Owner

Worker 2 is taking this issue.

Branch: agent-2/issue-7-implement-local-api-key-admin-cli
Worktree: C:\Users\dohertj2\Desktop\mxaccessgw-agent-2

Worker 2 is taking this issue. Branch: agent-2/issue-7-implement-local-api-key-admin-cli Worktree: C:\Users\dohertj2\Desktop\mxaccessgw-agent-2
Author
Owner

Implemented and merged via PR #62: #62

Commit: da9ffe0
Merge commit on main: 8ce327e6f4
Branch: agent-2/issue-7-implement-local-api-key-admin-cli

Verification:

  • dotnet build src\MxGateway.sln passed with 0 warnings and 0 errors.
  • dotnet test src\MxGateway.sln passed: 104 total tests.

Acceptance criteria verified: local API key create/list/revoke/audit flows are implemented with JSON output and secret redaction covered by focused tests.

Implemented and merged via PR #62: https://gitea.dohertylan.com/dohertj2/mxaccessgw/pulls/62 Commit: da9ffe0 Merge commit on main: 8ce327e6f422011eb24da21ea52283101893dfe0 Branch: agent-2/issue-7-implement-local-api-key-admin-cli Verification: - dotnet build src\\MxGateway.sln passed with 0 warnings and 0 errors. - dotnet test src\\MxGateway.sln passed: 104 total tests. Acceptance criteria verified: local API key create/list/revoke/audit flows are implemented with JSON output and secret redaction covered by focused tests.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: dohertj2/mxaccessgw#7