fix: Catch multiple leak occurrences in same string#5
Open
diogosilva30 wants to merge 3 commits intooxsecurity:mainfrom
Open
fix: Catch multiple leak occurrences in same string#5diogosilva30 wants to merge 3 commits intooxsecurity:mainfrom
diogosilva30 wants to merge 3 commits intooxsecurity:mainfrom
Conversation
Author
Collaborator
|
Hi @diogosilva30, thanks a lot for contributing, and apologies for the delayed response. this repository hasn’t been actively maintained for a while. I'm currently working on formalizing the repo to streamline reviewing and merging future PRs. Since this PR includes a lot of refactoring and style changes, it’s a bit difficult to review and merge as is at the moment. I suggest one of the following options:
Let me know which option you’d prefer, and thanks again for your patience and contribution! |
Author
|
@aviadlevy This has been a while, but I can give it a go at rebasing this MR against 1.0.0 release |
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.
Main change
Example:
AbstractMaskedLoggerand instead logic is placed into a independent functionmask_string. This allow + flexible usage of the codebase. For example, in my use case I want to have access to this function to cleanup a string outside of logging context, but since logic is currently hidden insideAbstractMaskedLogger._mask_sensitive_dataand the argument is aLogRecordwe cannot use this logic for more generic cases. By abstracting away the logic to an independentmask_stringmethod we can use this code base into other use-cases. Retro-compatibility is ensured by callingmask_stringinsideAbstractMaskedLogger._mask_sensitive_data.Example use case:
Additional
generic-api-keyto allow common chars that are used in passwords/api keys, and reduce minimum length to 8 instead of 10, as it's very common for passwords to have 8 as required minimum chars