-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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] Introduce blocked_key_patterns
parameter
#37664
[processor/redaction] Introduce blocked_key_patterns
parameter
#37664
Conversation
7c82c57
to
b3a192a
Compare
b3a192a
to
71decca
Compare
be2df19
to
b8eed15
Compare
blocked_key_patterns
and support hashing instead of masking values via hash_function
parameterblocked_key_patterns
parameter
@@ -43,6 +45,11 @@ func newRedaction(ctx context.Context, config *Config, logger *zap.Logger) (*red | |||
// TODO: Placeholder for an error metric in the next PR | |||
return nil, fmt.Errorf("failed to process block list: %w", err) | |||
} | |||
blockKeysRegexList, err := makeRegexList(ctx, config.BlockedKeyPatterns) | |||
if err != nil { | |||
// TODO: Placeholder for an error metric in the next PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have an issue for any TODO in the code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this TODO comment was copied from a block right above this. I have zero context what needs to be done here, but added it also here, since it's present in every block that is creating regex list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, fair, feel free to file an issue to investigate the mysterious TODOs then, but no need for it to block merging this PR :)
…shing instead of masking values via 'hash_function' parameter Signed-off-by: odubajDT <[email protected]>
Signed-off-by: odubajDT <[email protected]>
Signed-off-by: odubajDT <[email protected]>
Signed-off-by: odubajDT <[email protected]>
2e982da
to
28c2244
Compare
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### 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 <!-- Issue number (e.g. #1234) or full URL to issue, if applicable. --> #### Link to tracking issue Fixes #35830 #### Depends on #37664 --------- Signed-off-by: odubajDT <[email protected]> Co-authored-by: Evan Bradley <[email protected]>
Description
blocked_key_patterns
parameter to mask values of attributes, which keys match at least one of the defined patternsLink to tracking issue
Fixes #35830
Follow-up
#38161