From 20654383eaf93081c1795a47814ae48ba5ab3957 Mon Sep 17 00:00:00 2001 From: Jose Castillo Date: Tue, 24 Nov 2020 15:56:56 +0100 Subject: [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 Signed-off-by: Jake Hunsaker --- sos/report/plugins/openstack_ceilometer.py | 5 ++--- 1 file 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), -- cgit