bugsnag-java icon indicating copy to clipboard operation
bugsnag-java copied to clipboard

Adding Redacted Keys

Open clr182 opened this issue 1 year ago • 0 comments

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 redactedKeys config option.

  • Made redactedKeys case insensitive.

  • Changed filters config default parameters from {"password", "secret", "Authorization", "Cookie"}; to {"ipAddress", "logLevel"};

  • Set refactedKeys config default parameters to {"password", "secret", "Authorization", "Cookie"};

Testing

Added and updated tests for filtering mechanism and redactedKeys mechanism.

clr182 avatar Jul 01 '24 15:07 clr182