-
-
Notifications
You must be signed in to change notification settings - Fork 328
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
[LiveComponent] Use container.build_hash instead of kernel.secret in CacheWarmer #2451
Conversation
dkarlovi
commented
Dec 18, 2024
Q | A |
---|---|
Bug fix? | yes |
New feature? | no |
Issues | Fix #2419 |
License | MIT |
Nice if this solution works for everyone! Depending on the feedback people give, we should probably add some tests to prevent problems in the future. |
Should we do the same for the FingerprintCalculator / Hydrator ? (they should only be called on runtime) |
AFAIK, they are actually using the secret as intended? The secret is required for cryptography there? I might be mistaken, feel free to correct me. Edit: correct, I've checked it and the secret usage there is indeed cryptographic and correct. I've actually reverse engineered this specific part of code in a Node app (to enable the Node app to render correct live components), it must use the secret too (the secret is shared with the Node app). It would be cool if you could specific a LiveComponent-specific secret (so, not use |
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.
Can you add a line in the changelog ?
@smnandre done. |
Thank you @dkarlovi. |
@smnandre IMO a bugfix release with this would be in order since it's blocking using Symfony 7.2 in specific cases completely. |