summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorBruno Brito Carvalho <brunoricardobritocarvalho@gmail.com>2017-07-27 17:52:34 +0200
committerGitHub <noreply@github.com>2017-07-27 17:52:34 +0200
commit770be31237f7466c26abbf2d58d5ed4ede585636 (patch)
tree7733f40556a41cd8f9964569c4ded3172ea6a4b2 /lib/oxidized
parentc5259b379534fc02a176a857faa7e2fd8f8196a5 (diff)
Exclude secondary-secrets and rsso-secret
I've noticed there are sometimes secondary keys and rsso-secrets, so I propose we also replace them (worked for us)!
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/model/fortios.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/fortios.rb b/lib/oxidized/model/fortios.rb
index 0249933..2d15aae 100644
--- a/lib/oxidized/model/fortios.rb
+++ b/lib/oxidized/model/fortios.rb
@@ -15,7 +15,7 @@ class FortiOS < Oxidized::Model
end
cmd :secret do |cfg|
- cfg.gsub! /(set (?:passwd|password|psksecret|secret|key ENC)).*/, '\\1 <configuration removed>'
+ cfg.gsub! /(set (?:passwd|password|secondary-secret|rsso-secret|psksecret|secret|key ENC)).*/, '\\1 <configuration removed>'
cfg.gsub! /(set private-key).*-+END ENCRYPTED PRIVATE KEY-*"$/m , '\\1 <configuration removed>'
cfg
end