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

[processor/redaction] Support hashing instead of masking values #38161

Merged
merged 6 commits into from
Mar 4, 2025

Conversation

odubajDT
Copy link
Contributor

@odubajDT odubajDT commented Feb 25, 2025

Description

  • added hash_function parameter to support hashing the values (or substrings of values) instead of masking them with a fixed string. By default fixed string masking is performed

Link to tracking issue

Fixes #35830

Depends on

#37664

mx-psi pushed a commit that referenced this pull request Feb 25, 2025
)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
- added `blocked_key_patterns` parameter to mask values of attributes,
which keys match at least one of the defined patterns
- refactored tests to make them easier to extend

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes #35830

#### Follow-up


#38161

---------

Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
…arameter

Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
@odubajDT odubajDT requested a review from mx-psi February 25, 2025 16:28
@odubajDT odubajDT changed the title [processor/redaction] Support hashing instead of masking values via parameter [processor/redaction] Support hashing instead of masking values Feb 25, 2025
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
@odubajDT odubajDT requested a review from atoulme February 28, 2025 06:02
Co-authored-by: Evan Bradley <11745660+evan-bradley@users.noreply.github.com>
@odubajDT odubajDT requested a review from evan-bradley March 3, 2025 15:51
@atoulme
Copy link
Contributor

atoulme commented Mar 4, 2025

Approved by a codeowner and an approver, merging.

@atoulme atoulme merged commit fdb0a20 into open-telemetry:main Mar 4, 2025
156 checks passed
@github-actions github-actions bot added this to the next release milestone Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
processor/redaction Redaction processor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[processor/redaction] Add support for keys patterns and ability to specify mask string
5 participants