Skip to content
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

Flag parameters as sensitive if they could contain the database password #5866

Merged
merged 2 commits into from
Jan 26, 2023

Conversation

derrabus
Copy link
Member

Q A
Type feature
Fixed issues N/A

Summary

PHP 8.2 introduced a SensitiveParameter attribute that allows us to flag parameters that should be redacted in stack traces: https://wiki.php.net/rfc/redact_parameters_in_back_traces

This PR uses this attribute on all parameters (that I could find) which could possibly contain the database password (or an SSL key), which also includes database URLs.

@derrabus derrabus added this to the 3.6.0 milestone Jan 23, 2023
@derrabus derrabus force-pushed the feature/sensitive-parameter branch 2 times, most recently from e0d7f58 to 327ff4f Compare January 23, 2023 10:41
@derrabus derrabus force-pushed the feature/sensitive-parameter branch 2 times, most recently from a3f25e1 to 89b5071 Compare January 23, 2023 10:49
@derrabus derrabus force-pushed the feature/sensitive-parameter branch 2 times, most recently from e1aa994 to 2714750 Compare January 24, 2023 23:19
derrabus and others added 2 commits January 26, 2023 17:44
@derrabus derrabus merged commit 267985c into doctrine:3.6.x Jan 26, 2023
@derrabus derrabus deleted the feature/sensitive-parameter branch January 26, 2023 16:53
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants