Skip to content

Commit

Permalink
Fix and unify redaction rule in report.sh (#10770)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Urban <urb.daniel7@gmail.com>
  • Loading branch information
urbandan authored Oct 30, 2024
1 parent 3d653b4 commit 59d9226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ SECRETS_OPT="hidden"
# sed non-printable text delimiter
SD=$(echo -en "\001") && readonly SD
# sed sensitive information filter expression
SE="s${SD}^\(\s*.*\password\s*:\s*\).*${SD}\1\<hidden>'${SD}; s${SD}^\(\s*.*\.key\s*:\s*\).*${SD}\1\<hidden>${SD}" && readonly SE
SE="s${SD}^\(\s*\(.*\.\)\{0,1\}password\(\..*\)\{0,1\}\s*:\s*\).*${SD}\1\'<hidden>'${SD}; s${SD}^\(\s*\(.*\.\)\{0,1\}key\(\..*\)\{0,1\}\s*:\s*\).*${SD}\1\'<hidden>'${SD}" && readonly SE

error() {
echo "$@" 1>&2 && exit 1
Expand Down

0 comments on commit 59d9226

Please # to comment.