diff options
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | lib/oxidized/model/netscaler.rb | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 07a9b64..5af3b51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ * FEATURE: ssh keepalive now configurable per node with ssh_no_keepalive boolean * FEATURE: add Comtrol model (@RobbFromIT) * MISC: add gpgme and sequel gems to Dockerfile for sources +* MISC: add secret filtering to netscaler (@shepherdjay) ## 0.24.0 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 |