summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/fortios.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2018-03-17 16:00:30 +0200
committerGitHub <noreply@github.com>2018-03-17 16:00:30 +0200
commit139494a7658d132b336e2c62c3eaca2e55841c24 (patch)
tree89add81ad016d6ae5e60dd7adef74af1a5c361d3 /lib/oxidized/model/fortios.rb
parent1062037bd1d2d269449c7374f52c9957c666b7d5 (diff)
parent692a5c0d61f4900c07b859afff5affa86ccb8505 (diff)
Merge pull request #1205 from SoulGit/add-fortios-secrets
Add fortios fields to be masked by remove_secret flag
Diffstat (limited to 'lib/oxidized/model/fortios.rb')
-rw-r--r--lib/oxidized/model/fortios.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/oxidized/model/fortios.rb b/lib/oxidized/model/fortios.rb
index bffaf3c..23370c4 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|group-password|secondary-secret|tertiary-secret|auth-password-l1|auth-password-l2|rsso|history0|history1|inter-controller-key ENC)).*/, '\\1 <configuration removed>'
+ cfg.gsub! /(set (?:passwd|password|psksecret|secret|key|group-password|secondary-secret|tertiary-secret|auth-password-l1|auth-password-l2|rsso|history0|history1|inter-controller-key ENC|passphrase ENC|login-passwd ENC)).*/, '\\1 <configuration removed>'
cfg.gsub! /(set private-key).*-+END ENCRYPTED PRIVATE KEY-*"$/m , '\\1 <configuration removed>'
cfg.gsub! /(set ca ).*-+END CERTIFICATE-*"$/m , '\\1 <configuration removed>'
cfg.gsub! /(set csr ).*-+END CERTIFICATE REQUEST-*"$/m , '\\1 <configuration removed>'
@@ -63,4 +63,3 @@ cfg << cmd('end') if @vdom_enabled
end
end
-