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

feat: redacted keys' comparison is now case-insensitive #653

Merged
merged 1 commit into from
Jun 1, 2020

Conversation

robinmacharg
Copy link
Contributor

Goal

Comparison of redacted keys should be case insensitive for strings.

Design

Comparison of key with redacted keys is now lower-cased. Keys and redacted keys remain as they were set. One side-effect is that a single redaction key can redact multiple pieces of metadata (e.g. "Password", "password" and "PASSWORD").

Changeset

Lowercasing added to BugsnagEvent.isRedactedKey()

Tests

A single unit test.

@robinmacharg robinmacharg force-pushed the v6-redacted-keys-comparison-case-insensitive branch from f7c1eaa to 994dabd Compare June 1, 2020 11:17
@robinmacharg robinmacharg marked this pull request as ready for review June 1, 2020 11:17
@robinmacharg robinmacharg merged commit 915d26e into v6 Jun 1, 2020
@robinmacharg robinmacharg deleted the v6-redacted-keys-comparison-case-insensitive branch June 1, 2020 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants