Skip to content

[SecurityBundle] Use git diff format in UPGRADE-8.0.md and fix expose_security_errors enum values #60939

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
Jun 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions UPGRADE-8.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,20 @@ SecurityBundle
# config/packages/security.yaml
security:
- hide_user_not_found: false
+ expose_security_errors: true
+ expose_security_errors: 'all'
```

Note: `expose_security_errors: true` is equivalent to `hide_user_not_found: false`. The logic is inverted.
```diff
# config/packages/security.yaml
security:
- hide_user_not_found: true
+ expose_security_errors: 'none'
```

Note: The `expose_security_errors` option accepts three values:
- `'none'`: Equivalent to `hide_user_not_found: true` (hides all security-related errors)
- `'all'`: Equivalent to `hide_user_not_found: false` (exposes all security-related errors)
- `'account_status'`: A new option that only exposes account status errors (e.g., account locked, disabled)

Serializer
----------
Expand Down
Loading