feat(identity,m2m): auth-guard state into rows + advisory invite locks (#120 slice 3, ADR-011) #125
No reviewers
Labels
No labels
epic
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
phase-7
phase-8
phase-9
priority/P0
priority/P1
priority/P2
type/backend
type/client
type/docs
type/ops
type/security
type/spike
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/failsulit!125
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/120-slice3-locks-guard-budget"
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?
#120 slice 3 / ADR-011: the last per-process auth state moves into the database — every distributed-state gap the audits flagged ('per-process → M2 hardening') is now closed structurally.
TotpSecurityGuard (B-6 #37 semantics preserved exactly):
M2mAuthMiddleware failure budget (SDK-03):
InvitationAcceptanceService (#90, now multi-instance):
Sweep extended to all four transient tables (sessions, challenges, consumed codes, auth failures) with precomputed DateTimeOffset cutoffs — TimeSpan-typed parameters don't survive the SQLite DateTimeOffset-TEXT conversion (same lesson as the slice-2 sweep).
Tests: 7 new (M2Slice3Tests): failures-persist-as-rows-and-reset-on-success (cross-scope), lockout expiry clears, replay-window-by-query + hashed-at-rest + 64-hex invariants, guard-scoped-not-singleton DI assertion, budget fixed-window exhaustion + per-IP isolation, sweep coverage, HTTP 31st-failure → 429 too_many_auth_failures. B-6 lockout/replay + #90/#107 invite invariants green as regressions.
Suite 945/0/39 (Release+Debug), coverage gate 87.46%. Third slice of #120; slice 4 (compose/health/package leftovers) remains.