chore(infra): Redis leaves the stack entirely (#120 slice 4, ADR-011) #126

Merged
amiryahaya merged 1 commit from feat/120-slice4-redis-cleanup into main 2026-11-08 19:26:05 +01:00
Owner

#120 slice 4 / ADR-011 finale: the last Redis footprint is gone — the server stack is Postgres-only.

  • compose.yml + compose.local.yml: redis service, ConnectionStrings__Redis env, depends_on, redisdata volume removed (compose configs validated)
  • RedisHealthCheck.cs deleted; the public /health/redis endpoint mapping removed (nothing to probe) — PublicRouteRegistry + AuthzMatrixTests entries updated with it, so the SEC-04 public-route registry stays exact
  • The obsolete startup warning ('SessionStore is in-memory only — set ConnectionStrings:Redis') replaced with an honest note: sessions/OTP live in Postgres (horizontal-scale-capable per ADR-011); the SDK InMemorySessionStore survives only as the SSE notification bus for the frozen wallet pairing flow (dies with the ADR-006 wallet decommission)
  • Package references removed: Microsoft.Extensions.Caching.StackExchangeRedis (API — its last consumers, RedisOtpStore + AddStackExchangeRedisCache, died in slices 1–2), Testcontainers.Redis (tests — fixture gone since slice 2)
  • appsettings Redis connection strings removed

One-line diff summary: 5 insertions, 70 deletions across 10 files. Suite 945/0/39 (Release+Debug), coverage gate 87.77%. Closes #120 — slices 1–3 (PostgresOtpStore #89, PostgresSessionStore, advisory locks + guard/budget rows) are already merged.

**#120 slice 4 / ADR-011 finale:** the last Redis footprint is gone — the server stack is Postgres-only. - **compose.yml + compose.local.yml**: redis service, `ConnectionStrings__Redis` env, depends_on, redisdata volume removed (compose configs validated) - **RedisHealthCheck.cs** deleted; the public **/health/redis** endpoint mapping removed (nothing to probe) — **PublicRouteRegistry** + **AuthzMatrixTests** entries updated with it, so the SEC-04 public-route registry stays exact - The obsolete startup warning ('SessionStore is in-memory only — set ConnectionStrings:Redis') replaced with an honest note: sessions/OTP live in Postgres (horizontal-scale-capable per ADR-011); the SDK InMemorySessionStore survives only as the SSE notification bus for the frozen wallet pairing flow (dies with the ADR-006 wallet decommission) - Package references removed: Microsoft.Extensions.Caching.StackExchangeRedis (API — its last consumers, RedisOtpStore + AddStackExchangeRedisCache, died in slices 1–2), Testcontainers.Redis (tests — fixture gone since slice 2) - appsettings Redis connection strings removed One-line diff summary: 5 insertions, 70 deletions across 10 files. Suite 945/0/39 (Release+Debug), coverage gate 87.77%. **Closes #120** — slices 1–3 (PostgresOtpStore #89, PostgresSessionStore, advisory locks + guard/budget rows) are already merged.
chore(infra): Redis leaves the stack entirely (#120 slice 4, ADR-011)
All checks were successful
API CI / build-and-test (pull_request) Successful in 5m7s
Security CI / security-scan (pull_request) Successful in 2m14s
476242e639
The final Redis footprint is gone — the stack is Postgres-only:

- compose.yml + compose.local.yml: redis service, ConnectionStrings__Redis
  env, depends_on entry, redisdata volume removed
- RedisHealthCheck.cs deleted; the public /health/redis endpoint mapping
  removed (compose has nothing to probe) — PublicRouteRegistry +
  AuthzMatrixTests entries updated with it (SEC-04 registry stays exact)
- the obsolete startup warning ('SessionStore is in-memory only — set
  ConnectionStrings:Redis') replaced with an honest note: sessions/OTP
  live in Postgres; the SDK InMemorySessionStore survives only as the SSE
  bus for the frozen wallet pairing flow (ADR-006 decommission)
- Microsoft.Extensions.Caching.StackExchangeRedis (API) and
  Testcontainers.Redis (tests) package references removed
- appsettings Redis connection strings removed

Suite 945/0/39 Release+Debug, coverage 87.77%. Compose files validated.
Closes #120.
Sign in to join this conversation.
No description provided.