Skip to content

[SecurityBundle] Use %container.build_hash% instead of %kernel.secret% with the rate-limiter #56831

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

Merged
merged 1 commit into from
May 21, 2024

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 7.2
Bug fix? no
New feature? no
Deprecations? no
Issues -
License MIT

In #51434, we decided to hash the username and the client IP in order to anonymize logs.
I propose to use %container.build_hash% instead of %kernel.secret% in order to use %kernel.secret% one less time.
%container.build_hash% looks good enough to me, and it doesn't need any external configuration.
Related to the discussion happening in symfony/recipes#1314

@fabpot
Copy link
Member

fabpot commented May 21, 2024

Thank you @nicolas-grekas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants