From 850bf47c5d005cd0f57c39f4543c4ddc30218f65 Mon Sep 17 00:00:00 2001 From: Jorge Merlino Date: Fri, 10 Nov 2023 12:13:20 +0200 Subject: [PATCH] [MAAS] Remove snap TLS private key from report Remove file /var/snap/maas/current/http/certs/regiond-proxy-key.pem so that it is not collected by sosreport Signed-off-by: Jorge Merlino --- sos/report/plugins/maas.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sos/report/plugins/maas.py b/sos/report/plugins/maas.py index 2dfccaec64..3572d56005 100644 --- a/sos/report/plugins/maas.py +++ b/sos/report/plugins/maas.py @@ -85,7 +85,10 @@ def setup(self): self.add_journal(units="snap.maas.pebble", since=since) # Don't send secrets - self.add_forbidden_path("/var/snap/maas/current/bind/session.key") + self.add_forbidden_path([ + "/var/snap/maas/current/bind/session.key", + "/var/snap/maas/current/http/certs/regiond-proxy-key.pem", + ]) self.add_copy_spec([ "/var/snap/maas/common/log", "/var/snap/maas/common/snap_mode",