aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Castillo <jose.mfcastillo@gmail.com>2020-11-24 15:56:56 +0100
committerJake Hunsaker <jhunsake@redhat.com>2020-11-30 12:13:52 -0500
commit20654383eaf93081c1795a47814ae48ba5ab3957 (patch)
treecc5f460f4ad85f971441dae2d93bb67dd4a62b88
parent9485433b9e24ff6862ed88e6c81c3fc74d3e4e45 (diff)
downloadsos-20654383eaf93081c1795a47814ae48ba5ab3957.tar.gz
[openstack_ceilometer] Add backend_url and transport_url
to connection keys This patch adds the password and url in backend_url and transport_url to the list of connection keys, so it gets properly masked. Related: RHBZ#1892692 Resolves: #2298 Signed-off-by: Jose Castillo <jose.mfcastillo@gmail.com> Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/report/plugins/openstack_ceilometer.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sos/report/plugins/openstack_ceilometer.py b/sos/report/plugins/openstack_ceilometer.py
index eda59977..c9e38db6 100644
--- a/sos/report/plugins/openstack_ceilometer.py
+++ b/sos/report/plugins/openstack_ceilometer.py
@@ -51,10 +51,9 @@ class OpenStackCeilometer(Plugin):
"admin_password", "connection_password", "host_password",
"memcache_secret_key", "os_password", "password", "qpid_password",
"rabbit_password", "readonly_user_password", "secret_key",
- "ssl_key_password", "telemetry_secret", "metering_secret",
- "transport_url"
+ "ssl_key_password", "telemetry_secret", "metering_secret"
]
- connection_keys = ["connection"]
+ connection_keys = ["connection", "backend_url", "transport_url"]
self.apply_regex_sub(
r"((?m)^\s*(%s)\s*=\s*)(.*)" % "|".join(protect_keys),