summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/SSHbase.py
diff options
context:
space:
mode:
authorHolger Weiß <holger@zedat.fu-berlin.de>2011-06-29 15:55:45 +0200
committerHolger Weiß <holger@zedat.fu-berlin.de>2011-06-29 15:55:45 +0200
commita702a5ee53ae8cb5870844237fe88c55dac97734 (patch)
tree1147fc413cf4e720a5512212cca4046b7637a380 /src/lib/Server/Plugins/SSHbase.py
parent53d46e336d3514ec50f85e5db4ceed16590bf154 (diff)
downloadbcfg2-a702a5ee53ae8cb5870844237fe88c55dac97734.tar.gz
bcfg2-a702a5ee53ae8cb5870844237fe88c55dac97734.tar.bz2
bcfg2-a702a5ee53ae8cb5870844237fe88c55dac97734.zip
New Info attribute: "sensitive"
The contents/diffs of <Path>s which are marked as "sensitive" are now omitted from the reports transmitted to the server, so that they won't end up in the statistics database.
Diffstat (limited to 'src/lib/Server/Plugins/SSHbase.py')
-rw-r--r--src/lib/Server/Plugins/SSHbase.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/Server/Plugins/SSHbase.py b/src/lib/Server/Plugins/SSHbase.py
index 4a33c0cb0..b15275815 100644
--- a/src/lib/Server/Plugins/SSHbase.py
+++ b/src/lib/Server/Plugins/SSHbase.py
@@ -230,10 +230,12 @@ class SSHbase(Bcfg2.Server.Plugin.Plugin,
keydata = self.entries[filename].data
permdata = {'owner': 'root',
'group': 'root',
- 'type': 'file',
- 'perms': '0600'}
+ 'type': 'file'}
if entry.get('name')[-4:] == '.pub':
permdata['perms'] = '0644'
+ else:
+ permdata['perms'] = '0600'
+ permdata['sensitive'] = 'true'
[entry.attrib.__setitem__(key, permdata[key]) for key in permdata]
if "ssh_host_key.H_" == filename[:15]:
entry.attrib['encoding'] = 'base64'