-
Notifications
You must be signed in to change notification settings - Fork 16.3k
fix: Add missing security settings for session cookie #53542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1f8602d to
5c4742a
Compare
|
We marked these configs as deleted in |
Hi @vincelevey , I don't necessarily need these options back, but I found that with self-hosting, the api-server doesn't have these options on by default. I can see from Firefox that my session cookie is not HTTP-only, and not secure, etc. Perhaps you know a better way to have them configured in api-server in 3.0? I currently just add these 3 options in the api-server config python file via the Helm chart values, and it works. I think it would be great if these options can be set more transparently. |
You are using these config so you need them back and I think this is okay. You are using these configs |
Thank you. I will check that PR and update my changes. |
f358a37 to
b28ee8f
Compare
b28ee8f to
af273a2
Compare
vin100bk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thanks for taking the time to update the PR :) Much appreciated
vincbeck
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thanks for taking the time to update the PR :) Much appreciated
|
Will this fix be included in the next release? Thanks! Update: a quick question, not sure if this issue is related, #47878, which will be released in 3.2.0. |
It is mostly a provider change so this is already released in the latest fab provider version |
Is this env var still valid |
|
It is now |
Add the following security-related session cookie settings that was missing:
SESSION_COOKIE_HTTPONLY = TrueSESSION_COOKIE_SECUREcomes from config[fab] COOKIE_SECURESESSION_COOKIE_SAMESITEcomes from config[fab] COOKIE_SAMESITE[webserver] COOKIE_SECUREis renamed to[fab] COOKIE_SECURE[webserver] COOKIE_SAMESITEis renamed to[fab] COOKIE_SAMESITEWe may want to change the config location because this is now in api-server in 3.0?