Blame SOURCES/sos-bz1785813-foreman-proxy_password_scrub.patch

4b1b63
From fb201fb80f27bdcc69d532ebcc3ff2ae2356edc7 Mon Sep 17 00:00:00 2001
4b1b63
From: Jan Jansky <jjansky@redhat.com>
4b1b63
Date: Mon, 4 Jan 2021 10:53:14 +0100
4b1b63
Subject: [PATCH] [foreman] scrub rhsm proxy_password in installer logs
4b1b63
4b1b63
Scrub potential RHSM proxy_password = <secret> in installer logs.
4b1b63
4b1b63
Related: #2144
4b1b63
Resolves: #2354
4b1b63
4b1b63
Signed-off-by: Jan Jansky <jjansky@redhat.com>
4b1b63
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
4b1b63
---
4b1b63
 sos/plugins/foreman.py | 3 ++-
4b1b63
 1 file changed, 2 insertions(+), 1 deletion(-)
4b1b63
4b1b63
diff --git a/sos/plugins/foreman.py b/sos/plugins/foreman.py
4b1b63
index 16d8c7f..ff79b81 100644
4b1b63
--- a/sos/plugins/foreman.py
4b1b63
+++ b/sos/plugins/foreman.py
4b1b63
@@ -266,7 +266,8 @@ class Foreman(Plugin):
4b1b63
 
4b1b63
     def postproc(self):
4b1b63
         satreg = r"((foreman.*)?(\"::(foreman(.*?)|katello).*)?((::(.*)::.*" \
4b1b63
-              r"(passw|cred|token|secret|key).*(\")?:)|(storepass )))(.*)"
4b1b63
+              r"(passw|cred|token|secret|key).*(\")?:)|(storepass )" \
4b1b63
+              r"|(password =)))(.*)"
4b1b63
         self.do_path_regex_sub(
4b1b63
             "/var/log/foreman-installer/sat*",
4b1b63
             satreg,
4b1b63
-- 
4b1b63
1.8.3.1
4b1b63