fix(security): secure session cookies and HSTS in prod #15

Closed
opened 2026-11-01 16:49:00 +00:00 by jfro · 0 comments
Owner

Session and remember-me cookies aren't secure (endpoint.ex, user_auth.ex:14) and there's no HSTS. Set secure: true when the URL scheme is https and enable force_ssl/HSTS in prod (respecting the http-only LAN case, see the PHX_SCHEME issue).

Found in the pre-1.0 gap audit of main @ 69e09f0.

Session and remember-me cookies aren't `secure` (endpoint.ex, user_auth.ex:14) and there's no HSTS. Set `secure: true` when the URL scheme is https and enable `force_ssl`/HSTS in prod (respecting the http-only LAN case, see the PHX_SCHEME issue). Found in the pre-1.0 gap audit of main @ 69e09f0.
jfro added this to the v1.0 milestone 2026-11-01 16:49:00 +00:00
jfro closed this issue 2026-11-01 18:32:50 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/lamplighter#15
No description provided.