-
Notifications
You must be signed in to change notification settings - Fork 181
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: move obfuscation and redaction to core (with specs) #3679
Conversation
FYI, I will update all the other specs defined in the |
f5370c5
to
fb5db99
Compare
test me |
3 similar comments
test me |
test me |
test me |
test me |
2 similar comments
test me |
test me |
17358e9
to
07a4ea3
Compare
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.
@xiangce I don't know enough about the client to assess that code but generally, other than my comments, it looks good.
Before we merge this, I would like to get some client QE to test an egg built with this code. How confident are we that this is a non-breaking change? Does this make any changes to the API boundary between core and client? |
Before completing the modification to the |
dfc84da
to
4a705fd
Compare
e7527f1
to
9089fc8
Compare
a68a762
to
08e39a2
Compare
test me |
f763d1a
to
a2d5254
Compare
4fe5acf
to
b72a934
Compare
52c62eb
to
66f9e90
Compare
66f9e90
to
bc935fa
Compare
bc935fa
to
4f46f30
Compare
4f46f30
to
668884d
Compare
d20948e
to
1955264
Compare
* feat: move obfuscation and redaction to core (with specs) - move the obfuscation/redaction from client to core: - add "no_obfuscate" list to RegistryPoint ([] by default), the `Cleaner` could obfuscate lines accordingly - move redaction into Cleaner as well, and redact line by line instead of the whole file - add the obfuscated hostname and keywords information to rhsm facts in addition to IP - also support the legacy collection - refactor the tests correspondingly Signed-off-by: Xiangce Liu <[email protected]> * Misc updates according to new updates - add option "no_redact" to RegisterPoint for redaction, "no_redact=False" by default - move processing of keywords (replacement) to _redact_line See https://access.redhat.com/documentation/en-us/red_hat_insights/2023/html/client_configuration_guide_for_red_hat_insights/con-insights-client-data-redaction_insights-cg-data-redaction#proc-insights-client-cg-redact-pattern-keyword-yaml_insights-cg-data-redaction - process patterns and keywords in spec_cleaner for content-redaction, file-redcation is not processed in spec_cleaner - update relevant tests Signed-off-by: Xiangce Liu <[email protected]> * fix bugs and add tests for the spec_cleaner reports - and move the test of spec_cleaner to insights/tests/core - always generate the rhsm.facts per QE feedback - fix the archive name in case hostname=localhost * adjust the warning messages to the console per feedback from QE Signed-off-by: Xiangce Liu <[email protected]> (cherry picked from commit e73628d)
insights.core.spec_cleaner.Cleaner
so the
Cleaner
could obfuscate lines according to the listand redact line by line instead of the whole file
to rhsm facts in addition to IP
All Pull Requests:
Check all that apply:
Complete Description of Additions/Changes:
Move the Obfuscation&Redaction from the client side to the core side.
For more details, see INSGHTCORE-184