summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam Smith <zero1three@gmail.com>2018-03-15 02:18:38 -0700
committerAdam Smith <zero1three@gmail.com>2018-03-15 02:18:38 -0700
commit05e1d505f2cc30e87b1cdcf90db966690882f610 (patch)
tree1db2a9937f1571a573a0c69f2f98630f6cf1bb74 /lib
parent5a879372227bbacffdccab94349ec44aab47a26f (diff)
add secrets to sanitize in JunOS
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/model/junos.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/oxidized/model/junos.rb b/lib/oxidized/model/junos.rb
index 2f59414..4652ab1 100644
--- a/lib/oxidized/model/junos.rb
+++ b/lib/oxidized/model/junos.rb
@@ -13,7 +13,9 @@ class JunOS < Oxidized::Model
end
cmd :secret do |cfg|
- cfg.gsub!(/encrypted-password (\S+).*/, '<secret removed>')
+ cfg.gsub!(/encrypted-password (\S+).*/, 'encrypted-password <secret removed>')
+ cfg.gsub!(/pre-shared-key ascii-text (\S+).*/, 'pre-shared-key ascii-text <secret removed>')
+ cfg.gsub!(/authentication-key (\S+).*/, 'authentication-key <secret removed>')
cfg.gsub!(/community (\S+) {/, 'community <hidden> {')
cfg
end