-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Provide Session Id Generation Strategy #11
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
Comments
+1 |
I submitted a pull request #204. |
This would be very helpful so that we can customize the session ID with a suffix of the jvmRoute. We have legacy code that requires the .jvmRoute at the end and currently calling |
Hi, I am trying to overwrite the UUID generated as part of MapSession as there is a potential risk involved with this (https://neilmadden.blog/2018/08/30/moving-away-from-uuids/). To mitigate this risk, I am trying to overwrite the session-id generated through framework as follows taking the idea from (https://stackoverflow.com/questions/48353967/how-to-modify-or-custom-sessionid-in-spring-session-project): `
` But this is not working. Now the session is not getting persisted to Redis. I cannot understand what I am missing here. In this context, I have gone through this: #1406, but did not get a concrete idea. I have posted a question in SO also in this regard: https://stackoverflow.com/questions/62897170/how-to-instantiate-org-springframework-session-mapsession-in-my-spring-boot-appl Could anyone please help me to fix this? Thanks. |
Hi where do we stand on this enhancement, our security team feels that the session ids being generated are not random enough (eg long enough), and would like a way to modify it. Does anyone know if there is an alternative and/or how we can get this PR updated and merged in? |
Hi @PvanHengel, I am planning on getting this done for the 3.1 release. |
Closing in favor of #2286 |
We are currently using UIDs for session id generation. It may be better to include other characters to increase the entropy. We should be careful in how we use SecureRandom See https://www.synopsys.com/blogs/software-security/proper-use-of-javas-securerandom/ Last, we may want to make generating ids a strategy interface so that users can swap this out
The text was updated successfully, but these errors were encountered: