From a702a5ee53ae8cb5870844237fe88c55dac97734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Wei=C3=9F?= Date: Wed, 29 Jun 2011 15:55:45 +0200 Subject: New Info attribute: "sensitive" The contents/diffs of 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. --- src/lib/Server/Plugin.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/lib/Server/Plugin.py') diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py index f1d9ce75f..3841e637d 100644 --- a/src/lib/Server/Plugin.py +++ b/src/lib/Server/Plugin.py @@ -30,7 +30,8 @@ opts = {'owner': Bcfg2.Options.MDATA_OWNER, 'group': Bcfg2.Options.MDATA_GROUP, 'important': Bcfg2.Options.MDATA_IMPORTANT, 'perms': Bcfg2.Options.MDATA_PERMS, - 'paranoid': Bcfg2.Options.MDATA_PARANOID} + 'paranoid': Bcfg2.Options.MDATA_PARANOID, + 'sensitive': Bcfg2.Options.MDATA_SENSITIVE} mdata_setup = Bcfg2.Options.OptionParser(opts) mdata_setup.parse([]) del mdata_setup['args'] @@ -46,7 +47,8 @@ info_regex = re.compile( \ 'mtime:(\s)*(?P\w+)|' + 'owner:(\s)*(?P\S+)|' + 'paranoid:(\s)*(?P\S+)|' + - 'perms:(\s)*(?P\w+)|') + 'perms:(\s)*(?P\w+)|' + + 'sensitive:(\s)*(?P\S+)|') class PluginInitError(Exception): -- cgit v1.2.3-1-g7c22