-
Notifications
You must be signed in to change notification settings - Fork 364
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
Session Cookie Missing 'Secure' Attribute #2887
Comments
Good point. Should be fixed in #2902 which I'll test and release soon. |
@pglombardo Great news, sorry I missed your reply 2 days ago #BusyTimes |
Glad to see this being worked on as I also had this concern. I was able to set the secure flag by using FORCE_SSL and assume_ssl (due to the load balancer in front of my setup) in config/environments/production.rb. However, I see that FORCE_SSL is being deprecated soon.
|
@pglombardo Is the setting that @jaychinut suggest enough to get it working? |
Besides those two, I believe we also need the session cookie changes in #2902. The current issue that I need to confirm/research is that if I enable secure cookies, it will likely break any users who are running pwpush internally over HTTP. With the list of options growing every release, I might have to make some opinionated decisions in the v2 docker containers which is coming eventually. I'm thinking maybe make the Docker container SSL enabled by default by bundling Caddy directly in the container. All security options enabled by default. Then an option to instead make everything HTTP for those who want to use their own proxy. So a slight ramble but there is a bit of complexity I have to work though. I'll try to get #2902 out soon. |
That's a good idea, also if you make it still an option in the environment than people can still choose. And make a best practice with the enabled option for an Secure Environment with NGINX etc. Keep up the good work! But the secure cookies part - is becoming critical with Pentests etc. |
We got this in a report (Pentest)
Is the fix: https://docs.pwpush.com/docs/other-configurations/ setting - SECRET_KEY_BASE
Or do we need to do more?
Finding;
The text was updated successfully, but these errors were encountered: