Skip to content

[SecurityBundle] forbid to use hide_user_not_found and expose_security_errors at the same time #60425

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 15, 2025

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented May 15, 2025

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

hide_user_not_found will not have any effect if expose_security_errors is set. Throwing an exception early will improve DX and avoid WTF moments where one might be wondering why the "hide_user_not_found" option doesn't change anything.

…he same time

"hide_user_not_found" will not have any effect if "expose_security_errors" is set.
Throwing an exception early will improve DX and avoid WTF moments where one might
be wondering why the "hide_user_not_found" option doesn't change anything.
@xabbuh xabbuh requested a review from chalasr as a code owner May 15, 2025 07:11
@carsonbot carsonbot added this to the 7.3 milestone May 15, 2025
@OskarStark OskarStark changed the title [SecurityBundle] forbid to use "hide_user_not_found" and "expose_security_errors" at the same time [SecurityBundle] forbid to use hide_user_not_found and expose_security_errors at the same time May 15, 2025
@xabbuh xabbuh added the ❄️ Feature Freeze Important Pull Requests to finish before the next Symfony "feature freeze" label May 15, 2025
@chalasr
Copy link
Member

chalasr commented May 15, 2025

Thank you @xabbuh.

@chalasr chalasr merged commit d78481c into symfony:7.3 May 15, 2025
11 checks passed
@xabbuh xabbuh deleted the pr-58300 branch May 15, 2025 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SecurityBundle ❄️ Feature Freeze Important Pull Requests to finish before the next Symfony "feature freeze" Status: Reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants