Blame SOURCES/sos-bz1845386-pacemaker-passwords-with-equal-sign.patch
|
|
bceef4 |
From b34edec39189d5501b9943f73ec2afa7c7b98d58 Mon Sep 17 00:00:00 2001
|
|
|
bceef4 |
From: Reid wahl <nrwahl@protonmail.com>
|
|
|
bceef4 |
Date: Mon, 8 Jun 2020 22:50:00 -0700
|
|
|
bceef4 |
Subject: [PATCH] [pacemaker] Fix scrubbing when password contains an equal
|
|
|
bceef4 |
sign
|
|
|
bceef4 |
|
|
|
bceef4 |
If the password contains one or more equal signs ('='), only the substring
|
|
|
bceef4 |
after the final equal sign is scrubbed. The rest of the password appears in
|
|
|
bceef4 |
plain text.
|
|
|
bceef4 |
|
|
|
bceef4 |
This patch modifies the scrub regex to scrub all characters after the first
|
|
|
bceef4 |
equal sign.
|
|
|
bceef4 |
|
|
|
bceef4 |
Related to RHBZ#1845386.
|
|
|
bceef4 |
Resolves: #2109
|
|
|
bceef4 |
|
|
|
bceef4 |
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
|
|
|
bceef4 |
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
|
|
|
bceef4 |
---
|
|
|
bceef4 |
sos/plugins/pacemaker.py | 4 ++--
|
|
|
bceef4 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
bceef4 |
|
|
|
bceef4 |
diff --git a/sos/plugins/pacemaker.py b/sos/plugins/pacemaker.py
|
|
|
bceef4 |
index 7294c35a..8beec811 100644
|
|
|
bceef4 |
--- a/sos/plugins/pacemaker.py
|
|
|
bceef4 |
+++ b/sos/plugins/pacemaker.py
|
|
|
bceef4 |
@@ -55,14 +55,14 @@ class Pacemaker(Plugin):
|
|
|
bceef4 |
def postproc_crm_shell(self):
|
|
|
bceef4 |
self.do_cmd_output_sub(
|
|
|
bceef4 |
"crm configure show",
|
|
|
bceef4 |
- r"passw(\S*)=\S+",
|
|
|
bceef4 |
+ r"passw([^\s=]*)=\S+",
|
|
|
bceef4 |
r"passw\1=********"
|
|
|
bceef4 |
)
|
|
|
bceef4 |
|
|
|
bceef4 |
def postproc_pcs(self):
|
|
|
bceef4 |
self.do_cmd_output_sub(
|
|
|
bceef4 |
"pcs config",
|
|
|
bceef4 |
- r"passw(\S*)=\S+",
|
|
|
bceef4 |
+ r"passw([^\s=]*)=\S+",
|
|
|
bceef4 |
r"passw\1=********"
|
|
|
bceef4 |
)
|
|
|
bceef4 |
|
|
|
bceef4 |
--
|
|
|
bceef4 |
2.26.2
|
|
|
bceef4 |
|