Skip to content

PYR1-1520 PYR1-1521 Opt-in Secure session cookies and HSTS - #156

Merged
lambdatronic merged 3 commits into
mainfrom
sif/pyr1-1520-1521-tls-cookie
Jul 1, 2026
Merged

PYR1-1520 PYR1-1521 Opt-in Secure session cookies and HSTS#156
lambdatronic merged 3 commits into
mainfrom
sif/pyr1-1520-1521-tls-cookie

Conversation

@sifbiri

@sifbiri sifbiri commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Purpose

This adds two opt-in config keys for HTTPS hardening, both off by default, so existing deployments don't change. Set :triangulum.handler/session-cookie-attrs to a map merged onto the session cookie, like {:secure true :same-site :lax}, or leave it unset to keep ring's defaults. Set :triangulum.handler/hsts? true to send an HSTS header when served over HTTPS.

Only deployments that set these keys get the hardening, so it's backward-compatible. Tests cover both the default and opt-in paths.

@lambdatronic
lambdatronic self-requested a review July 1, 2026 11:27

@lambdatronic lambdatronic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remember to add the new keys to src/triangulum/config_namespaced_spec.clj.

@lambdatronic
lambdatronic merged commit 800d8ad into main Jul 1, 2026
2 checks passed
@lambdatronic
lambdatronic deleted the sif/pyr1-1520-1521-tls-cookie branch July 1, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants