aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2018-01-25 17:43:12 -0500
committerBryn M. Reeves <bmr@redhat.com>2018-02-12 12:28:34 +0000
commitb9ace2788c2f9c327ac519fa007bc08470f4fd2b (patch)
tree55d72cecff16d3ad20756b9c1a2a70f5ae3f4dc3
parentc68f2daf4751e0547743b207aa8e07b4df0759ab (diff)
downloadsos-b9ace2788c2f9c327ac519fa007bc08470f4fd2b.tar.gz
[etcd] Do not collect private etcd keys
Prevents sos from capturing the /etc/etcd/ca directory and its contents, which is primarily private keys and the like. Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/plugins/etcd.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sos/plugins/etcd.py b/sos/plugins/etcd.py
index d80bbeeb..884aa1bd 100644
--- a/sos/plugins/etcd.py
+++ b/sos/plugins/etcd.py
@@ -31,6 +31,7 @@ class etcd(Plugin, RedHatPlugin):
def setup(self):
etcd_url = self.get_etcd_url()
+ self.add_forbidden_path('/etc/etcd/ca')
self.add_copy_spec('/etc/etcd')
subcmds = [