happyDomain/internal
Pierre-Olivier Mercier 68a783b7bb security: 15-day session lifetime with 7-day auto-renewal
- Reduce SESSION_MAX_DURATION from 365 days to 15 days
- Add SESSION_RENEWAL_THRESHOLD (7 days): sessions are only extended
  when fewer than 7 days remain, instead of refreshing on every request
- Align cookie MaxAge with SESSION_MAX_DURATION (derived from the constant)
- Enforce expiry in load(): expired sessions are deleted on first use
  and the caller receives an error, preventing Bearer-token replay of
  stale sessions that the securecookie age check would not catch

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-12 15:03:56 +07:00
..
adapters Update to latest dnscontrol 2026-02-03 11:04:38 +08:00
api fix: return updated session from UpdateSession endpoint 2026-03-12 15:03:49 +07:00
api-admin fix: resolve go vet variable shadowing warnings 2026-03-01 17:37:59 +07:00
app Support configurable BasePath for hosting at a sub-path 2026-03-01 17:41:01 +07:00
avatar Clean architecture refactoring 2025-04-22 14:15:03 +02:00
captcha Add Altcha captcha provider support 2026-02-13 12:29:14 +07:00
config web: Integrate BasePath support into frontend and fix web route serving 2026-03-01 17:41:02 +07:00
forms chore: replace interface{} with any across the codebase 2026-03-01 17:38:04 +07:00
helpers chore: apply Go naming conventions and minor code improvements 2026-03-01 17:38:12 +07:00
mailer chore: apply Go naming conventions and minor code improvements 2026-03-01 17:38:12 +07:00
newsletter chore: apply Go naming conventions and minor code improvements 2026-03-01 17:38:12 +07:00
session security: 15-day session lifetime with 7-day auto-renewal 2026-03-12 15:03:56 +07:00
storage chore: apply Go naming conventions and minor code improvements 2026-03-01 17:38:12 +07:00
usecase security: 15-day session lifetime with 7-day auto-renewal 2026-03-12 15:03:56 +07:00