-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Security] Remove role classes that allow migrating session payloads from v4 #44855
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
I don't think they should be removed. |
(even if I said so on the original PR :) ) |
@nicolas-grekas why not? What discussed this morning was keeping BC with skipping (or "not updating all sessions") an upgrade step in production for a minor (e.g. 5.3 to 6.0). This is about skipping a whole major. I don't think we should care about those. So I'm 👍 for removing these |
I think that there is no reason to make migrating to v6 harder. |
Comments like #44676 (comment) make me think that. |
I agree. We can keep those classes a bit longer. |
I'm fine either way. Do we need to define a policy when this will be removed, or will we always keep this class like it is? |
I think it should be defined. When I opened the original issue, I couldn't find any reference to know if the session payload unserialization between major versions is supported or not. My option here would be to support the unserialization from the previous major version only, but anyway it should be documented and tested. |
This is tested already since #44805 |
I think we need to add two tests
If session payload unserialization is going to be supported for at least two major versions, this policy should be documented. In that case, I think two additional tests would be required:
|
We shouldn't create this policy IMHO. Instead, we should have discussions and decide what's best at the time we're having such discussions. Which is what we're doing here. Thanks for starting it @ajgarlag. On my side, I think we have a decision here. |
Closing as discussed, thanks for proposing. |
These classes where reintroduced in Symfony 5.3 to allow migrating session payloads from v4 (See #44805).
They should be removed in Symfony 6