summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJay Shepherd <shepherdjay@users.noreply.github.com>2018-09-17 14:11:39 -0600
committerWild Kat <wk@users.noreply.github.com>2018-09-17 22:11:39 +0200
commit24ddf393801bafea120d3d442dda7a331246c5b4 (patch)
treea81a8e97c05935bde72663fde6715cedc96e4179 /lib
parentb64def6743003d57698a1faa790408b48bc49a26 (diff)
Update netscaler.rb to introduce secret scrubbing (#1518)
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/model/netscaler.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/oxidized/model/netscaler.rb b/lib/oxidized/model/netscaler.rb
index 278da1b..d8a844e 100644
--- a/lib/oxidized/model/netscaler.rb
+++ b/lib/oxidized/model/netscaler.rb
@@ -14,6 +14,14 @@ class NetScaler < Oxidized::Model
comment cfg
end
+ cmd :secret do |cfg|
+ cfg.gsub! /(-password)\s\w+/, '\\1 <secret hidden>'
+ cfg.gsub! /(-keyValue)\s\w+/, '\\1 <secret hidden>'
+ cfg.gsub! /(-radKey)\s\w+/, '\\1 <secret hidden>'
+ cfg.gsub! /(-ldapBindDnPassword)\s\w+/, '\\1 <secret hidden>'
+ cfg
+ end
+
cmd 'show ns ns.conf'
cfg :ssh do