Skip to content

Set Secure flag on kamal writer cookie when TLS is active#191

Open
AnyCPU wants to merge 1 commit intobasecamp:mainfrom
AnyCPU:fix/kamal_writer_cookie_secure_1
Open

Set Secure flag on kamal writer cookie when TLS is active#191
AnyCPU wants to merge 1 commit intobasecamp:mainfrom
AnyCPU:fix/kamal_writer_cookie_secure_1

Conversation

@AnyCPU
Copy link
Contributor

@AnyCPU AnyCPU commented Feb 15, 2026

The kamal writer load balancer affinity cookie is set with HttpOnly but lacks the Secure attribute, so browsers may send it over plain HTTP when the proxy is serving TLS — adding Secure: r.TLS != nil ensures the cookie is restricted to HTTPS connections.

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.

1 participant