feat(identity): PostgresSessionStore — sessions + challenges in the database (#120 slice 2, ADR-011) #124
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!124
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/120-slice2-postgres-session-store"
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 2 / ADR-011: ISessionStore resolves to a Drive-side PostgresSessionStore — the SDK's Redis session store is no longer wired anywhere, and the redis-conditional DI branch is gone entirely.
Design:
Scope note: RedisSessionStoreIntegrationTests (the testcontainers class — source of the CI 60s-container hangs) is removed in this slice rather than slice 4, since the SDK Redis store is no longer referenced anywhere; noted on #120. RedisHealthCheck.cs file + compose service + package ref cleanup remain slice 4.
Tests: 14 new (PostgresSessionStoreTests): round-trip, value-not-token, mfa-value semantics, sliding-touch, expiry sweep, device fingerprint, invalidate-for-account with bystander, hashed-at-rest invariant, active counts, challenge consume-once/expiry/purpose-independence, DI wiring assertion, CreateSessionDirect seed path. The full auth suite (bootstrap, OIDC flows, admin MFA gate, logout, device revocation) doubles as the end-to-end regression for the swap.
Suite 938/0/39 (Release+Debug; net −6 removed Redis-container tests), coverage gate 87.39%. Second slice of #120.