-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure to sort secrets by longest when hiding
When we hide secrets in the logs we need to make sure that we start from the longest one, otherwise if we have two secrets with the same prefix the shortest one may hide first and leak the end of the longest one. Since we are in a loop and text is replace the substitutions would not occurs. Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
- Loading branch information
1 parent
91af4d6
commit b5b940f
Showing
3 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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