Persist sessions in Postgres instead of the express-session MemoryStore #34
Labels
No labels
bug
decision
docs
enhancement
integration
ops
security
tech-debt
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rbrooks/BatteryStorageCalculator#34
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
configureSession(backend/src/auth.js:9-19) uses express-session's default MemoryStore: unbounded growth, all sessions lost on every restart (each deploy logs the household out), and no path to a second replica. Addconnect-pg-simplebacked by the existing pool, with its table created via the normal migration flow (007_...), and set a sane cookie/session TTL. Verify login survives a backend restart behind Caddy.Acceptance criteria
Relations: relates to #8
(Audit finding F-13, 2026-07-16 — Severity: Medium, Confidence: High)