PMM-14962 Avoid printing sensitive info into log stream#5205
Open
PMM-14962 Avoid printing sensitive info into log stream#5205
Conversation
- New Protobuf extension is introduced `redact` that contains several values: -- REDACT_TYPE_FULL - fully replace string value with redact mask -- REDACT_TYPE_MASK - partially replace string value with redact mask -- REDACT_TYPE_DSN - replace credentials only in DSN with redact mask - Our protobuf message fields were annotated accordingly.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## v3 #5205 +/- ##
==========================================
- Coverage 47.70% 47.01% -0.69%
==========================================
Files 410 410
Lines 41967 41972 +5
==========================================
- Hits 20022 19735 -287
- Misses 19964 20239 +275
- Partials 1981 1998 +17
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PMM-14962
Link to the Feature Build: Percona-Lab/pmm-submodules#4290
sensitivethat contains several values:logger.RedactMessagethat shall be used in case proto message shall be printing into log stream. It does: