Blame SOURCES/sos-bz1539038-etcd-private-keys.patch

8b0807
From b9ace2788c2f9c327ac519fa007bc08470f4fd2b Mon Sep 17 00:00:00 2001
8b0807
From: Jake Hunsaker <jhunsake@redhat.com>
8b0807
Date: Thu, 25 Jan 2018 17:43:12 -0500
8b0807
Subject: [PATCH] [etcd] Do not collect private etcd keys
8b0807
8b0807
Prevents sos from capturing the /etc/etcd/ca directory and its contents,
8b0807
which is primarily private keys and the like.
8b0807
8b0807
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
8b0807
---
8b0807
 sos/plugins/etcd.py | 1 +
8b0807
 1 file changed, 1 insertion(+)
8b0807
8b0807
diff --git a/sos/plugins/etcd.py b/sos/plugins/etcd.py
8b0807
index d80bbeeb..884aa1bd 100644
8b0807
--- a/sos/plugins/etcd.py
8b0807
+++ b/sos/plugins/etcd.py
8b0807
@@ -31,6 +31,7 @@ class etcd(Plugin, RedHatPlugin):
8b0807
     def setup(self):
8b0807
         etcd_url = self.get_etcd_url()
8b0807
 
8b0807
+        self.add_forbidden_path('/etc/etcd/ca')
8b0807
         self.add_copy_spec('/etc/etcd')
8b0807
 
8b0807
         subcmds = [
8b0807
-- 
8b0807
2.13.6
8b0807