Issue #5: implement sqlite auth store and migrations #57

Closed
dohertj2 wants to merge 0 commits from agent-2/issue-5-implement-sqlite-auth-store-and-migrations into main
Owner

Implements the SQLite auth store for issue #5:

  • creates schema_version, api_keys, and api_key_audit
  • runs idempotent startup migrations when API-key auth migrations are enabled
  • blocks startup when the database schema version is newer than the gateway supports
  • adds active API-key lookup that excludes revoked keys
  • adds API-key audit append and recent-list services

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 #5

Implements the SQLite auth store for issue #5: - creates `schema_version`, `api_keys`, and `api_key_audit` - runs idempotent startup migrations when API-key auth migrations are enabled - blocks startup when the database schema version is newer than the gateway supports - adds active API-key lookup that excludes revoked keys - adds API-key audit append and recent-list services 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 #5
Author
Owner

Closing as duplicate/stale. Issue #5 was already verified and merged via PR #56.

Closing as duplicate/stale. Issue #5 was already verified and merged via PR #56.
dohertj2 closed this pull request 2026-04-26 16:46:58 -04:00

Pull request closed

Sign in to join this conversation.