diff options
author | Trevor Benson <trevor.benson@gmail.com> | 2024-01-15 13:10:23 -0800 |
---|---|---|
committer | Jake Hunsaker <jacob.r.hunsaker@gmail.com> | 2024-01-19 11:54:03 -0500 |
commit | ade3a8a25b71e5f462795a1bf12ef192f3962bbe (patch) | |
tree | 9d2ce9fc33f9eed3b06694bff96daf5a56d3fc63 | |
parent | d7de37b0ac00870e12a1cc36a5e0c0b8bc0eee96 (diff) | |
download | sos-ade3a8a25b71e5f462795a1bf12ef192f3962bbe.tar.gz |
[upload] Obfuscate the s3 secret key
Signed-off-by: Trevor Benson <trevor.benson@gmail.com>
-rw-r--r-- | sos/component.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/component.py b/sos/component.py index 8d3bea8f..7242b401 100644 --- a/sos/component.py +++ b/sos/component.py @@ -389,7 +389,8 @@ class SoSComponent(): # get just the relative path that archive works with f = os.path.relpath(f, _arc_path) for re in [r"(--upload-pass[\s=]+)\S+", - r"(--upload-url[\s=]+\S+://.*:)([^@]*)"]: + r"(--upload-url[\s=]+\S+://.*:)([^@]*)", + r"(--upload-s3-secret-key[\s=]+)\S+"]: self.archive.do_file_sub(f, re, r"\1********") def add_ui_log_to_stdout(self): |