Issue #7: implement local api key admin cli #62

Merged
dohertj2 merged 1 commits from agent-2/issue-7-implement-local-api-key-admin-cli into main 2026-04-26 17:02:10 -04:00
Owner

Implements the local API key administration gateway subcommand for issue #7.

Covered behavior:

  • adds apikey init-db, create-key, list-keys, revoke-key, and rotate-key
  • supports --json, --sqlite-path, and local --pepper
  • creates keys that authenticate through the existing verifier
  • revokes keys so verification fails
  • rotates keys and prints the new raw key once
  • lists keys without raw secrets or secret_hash
  • appends audit records for CLI operations

Tests run:

  • dotnet format src\MxGateway.sln --verify-no-changes
  • dotnet build src\MxGateway.sln
  • dotnet test src\MxGateway.Tests\MxGateway.Tests.csproj
  • dotnet test src\MxGateway.sln

Closes #7

Implements the local API key administration gateway subcommand for issue #7. Covered behavior: - adds `apikey init-db`, `create-key`, `list-keys`, `revoke-key`, and `rotate-key` - supports `--json`, `--sqlite-path`, and local `--pepper` - creates keys that authenticate through the existing verifier - revokes keys so verification fails - rotates keys and prints the new raw key once - lists keys without raw secrets or `secret_hash` - appends audit records for CLI operations Tests run: - dotnet format src\MxGateway.sln --verify-no-changes - dotnet build src\MxGateway.sln - dotnet test src\MxGateway.Tests\MxGateway.Tests.csproj - dotnet test src\MxGateway.sln Closes #7
dohertj2 added 1 commit 2026-04-26 17:00:53 -04:00
dohertj2 merged commit 8ce327e6f4 into main 2026-04-26 17:02:10 -04:00
Sign in to join this conversation.