Problem/Motivation
In 8.2, PHP added the SensitiveParameter attribute to designate parameters that should be redacted in stack traces.
We should use this parameter to harden EncryptionMethodInterface to prevent logging of encrypted text and keys.
Proposed resolution
Use SensitiveParameter on EncryptionMethodInterface. SensitiveParameter is already used by core (PasswordInterface and UserAuthInterface)
Issue fork encrypt-3608548
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- sensitive_parameter_attribute
changes, plain diff MR !20
Comments
Comment #3
ptmkenny commentedTests are failing but I believe these are pre-existing failures.
Comment #4
ptmkenny commentedTests pass: #3608563: Fix phpstan, phpcs, phpunit
Comment #7
alexpottThanks @ptmkenny