Implement API Key Hashing And Verification #6

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

Source: $file
Milestone: $currentMilestone

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

Deliverables:

  • parse mxgw_<key-id>_<secret> format,
  • HMAC-SHA256 with gateway-local pepper or accepted Argon2id dependency,
  • constant-time hash comparison,
  • key id/display name/scopes identity model.

Acceptance criteria:

  • raw secrets are never stored,
  • malformed keys fail unauthenticated,
  • valid keys authenticate,
  • revoked keys fail.

Tests:

  • parse tests,
  • hash verification,
  • redaction,
  • scope extraction.
Source: $file Milestone: $currentMilestone Labels: `area:auth`, `type:feature`, `priority:p0` Deliverables: - parse `mxgw_<key-id>_<secret>` format, - HMAC-SHA256 with gateway-local pepper or accepted Argon2id dependency, - constant-time hash comparison, - key id/display name/scopes identity model. Acceptance criteria: - raw secrets are never stored, - malformed keys fail unauthenticated, - valid keys authenticate, - revoked keys fail. Tests: - parse tests, - hash verification, - redaction, - scope extraction.
dohertj2 added this to the gateway-auth milestone 2026-04-26 15:22:28 -04:00
dohertj2 added the area:authtype:featurepriority:p0 labels 2026-04-26 15:22:28 -04:00
dohertj2 added a new dependency 2026-04-26 15:28:32 -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-6-implement-api-key-hashing-and-verification
Worktree: C:\Users\dohertj2\Desktop\mxaccessgw-agent-2

Worker 2 is taking this issue. Branch: agent-2/issue-6-implement-api-key-hashing-and-verification Worktree: C:\Users\dohertj2\Desktop\mxaccessgw-agent-2
Author
Owner

Implemented and merged via PR #59: #59

Commit: 696be17
Merge commit on main: 3b3e41acf4
Branch: agent-2/issue-6-implement-api-key-hashing-and-verification

Verification:

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

Acceptance criteria verified: malformed keys fail, valid keys verify against stored hashes, revoked keys fail, redaction avoids leaking raw secrets, and scope extraction is covered by focused tests.

Implemented and merged via PR #59: https://gitea.dohertylan.com/dohertj2/mxaccessgw/pulls/59 Commit: 696be17 Merge commit on main: 3b3e41acf454eb5e81d353754409ce151a8e25a4 Branch: agent-2/issue-6-implement-api-key-hashing-and-verification Verification: - dotnet build src\\MxGateway.sln passed with 0 warnings and 0 errors. - dotnet test src\\MxGateway.sln passed: 76 total tests. Acceptance criteria verified: malformed keys fail, valid keys verify against stored hashes, revoked keys fail, redaction avoids leaking raw secrets, and scope extraction is covered by focused tests.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: dohertj2/mxaccessgw#6