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(pii): Consider Bearer a password key #3484

Merged
merged 3 commits into from
Apr 26, 2024

Conversation

iker-barriocanal
Copy link
Contributor

Strings in the format Bearer <token> are not PII-scrubbed. This PR considers Bearer (case-insensitive) a password to scrub these tokens.

The use case that triggered this is an array of two values, where the first one has been filtered out by a PII password filter but the second one isn't. Although "tuple-like" arrays with a K-V format are a different use case, tokens forwarded individually should also be scrubbed.

@iker-barriocanal iker-barriocanal self-assigned this Apr 25, 2024
@iker-barriocanal iker-barriocanal requested a review from a team as a code owner April 25, 2024 10:53
Copy link
Member

@jjbayer jjbayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think "bearer" is unique enough to not cause any false positives.

@iker-barriocanal iker-barriocanal merged commit f60cc75 into master Apr 26, 2024
20 checks passed
@iker-barriocanal iker-barriocanal deleted the iker/feat/pii-bearer branch April 26, 2024 08: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