-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
Hide sensitive information with SensitiveParameter attribute #5189
Conversation
redaxo/src/addons/structure/plugins/history/lib/history_login.php
Outdated
Show resolved
Hide resolved
redaxo/src/core/lib/login/login.php
Outdated
#[\SensitiveParameter] | ||
$login, | ||
#[\SensitiveParameter] | ||
$password, | ||
$isPreHashed = false |
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.
gibts hier noch ein cs fixer setting was wir einstellen könnten, damit die parameter besser eingerückt würden? gibts nen cs-fixer setting wg. attributes auf separater zeile?
phpstan.neon.dist
Outdated
@@ -33,6 +33,7 @@ parameters: | |||
symfony: | |||
console_application_loader: .tools/phpstan/console.php | |||
ignoreErrors: | |||
- '#.*Attribute class SensitiveParameter does not exist.*#' |
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.
wird in phpstan implementiert mit phpstan/phpstan-src#1511
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.
Psalm upstream issue:
vimeo/psalm#8262
der PR ist fertig.. wir warten auf tool support in phpstan/psalm, siehe linked issues |
Alternativ: errors baselinen, da das attribut auch ohne tool support einen mehrwert zur laufzeit hat |
New feature for PHP 8.2: Redact parameters in back traces