Reviewed: https://review.opendev.org/c/starlingx/utilities/+/849141 Committed: https://opendev.org/starlingx/utilities/commit/1763064edcb25a37f7c51085bdd176b75d456f50 Submitter: "Zuul (22348)" Branch: master
commit 1763064edcb25a37f7c51085bdd176b75d456f50 Author: Al Bailey <email address hidden> Date: Fri Jul 8 18:36:57 2022 +0000
Fix password masking by collect for gzipped files
The zgrep syntax for a regex search was incorrect. The -E argument is required.
This meant that if a gzipped file (ie: bash.log.gz) was included in a collect, then its passwords would not be redacted.
Closes-Bug: 1981101
Test Plan: Verify that a gzipped bash log has its password redacted when running collect on CentOS and Debian.
Signed-off-by: Al Bailey <email address hidden> Change-Id: I497813949b65137a93a91bf58ede2c591fb15f62
Reviewed: https:/ /review. opendev. org/c/starlingx /utilities/ +/849141 /opendev. org/starlingx/ utilities/ commit/ 1763064edcb25a3 7f7c51085bdd176 b75d456f50
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 1763064edcb25a3 7f7c51085bdd176 b75d456f50
Author: Al Bailey <email address hidden>
Date: Fri Jul 8 18:36:57 2022 +0000
Fix password masking by collect for gzipped files
The zgrep syntax for a regex search was incorrect.
The -E argument is required.
This meant that if a gzipped file (ie: bash.log.gz)
was included in a collect, then its passwords would
not be redacted.
Closes-Bug: 1981101
Test Plan:
Verify that a gzipped bash log has its password
redacted when running collect on CentOS and Debian.
Signed-off-by: Al Bailey <email address hidden> 7a93a91bf58ede2 c591fb15f62
Change-Id: I497813949b6513