diff --git a/sos/component.py b/sos/component.py index 8d3bea8f07..7242b401af 100644 --- a/sos/component.py +++ b/sos/component.py @@ -389,7 +389,8 @@ def _obfuscate_upload_passwords(self): # 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):