Adding Redacted Keys
Goal
Filtering config option is case sensitive and is no longer in line with our notifier spec; as such it should be deprecated in favour of redactedKeys.
Design
Added redactedKeys configuration option, which is case insensitive, as a replacement for the filters configuration option. Additionally due to conflictions the default filters parameters were changed.
Changeset
-
Added
redactedKeysconfig option. -
Made
redactedKeyscase insensitive. -
Changed
filtersconfig default parameters from{"password", "secret", "Authorization", "Cookie"};to{"ipAddress", "logLevel"}; -
Set
refactedKeysconfig default parameters to{"password", "secret", "Authorization", "Cookie"};
Testing
Added and updated tests for filtering mechanism and redactedKeys mechanism.