summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoulGit <adam@furmantation.com>2018-09-12 07:30:49 -0700
committerWild Kat <wk@users.noreply.github.com>2018-09-12 16:30:49 +0200
commit0360043ba5daadade47d487e7740da6eec9eb68e (patch)
tree4e17c812ed61a94f87014e7c610267b909f745be
parent9ad36797b222f859f2123f4275751f9d5cf98b69 (diff)
Add fortios fields to be masked by remove_secret flag (#1511)
-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 417da03..f964ff1 100644
--- a/lib/oxidized/model/fortios.rb
+++ b/lib/oxidized/model/fortios.rb
@@ -20,7 +20,7 @@ class FortiOS < Oxidized::Model
# A number of other statements also contains sensitive strings
cfg.gsub! /(set (?:passwd|password|key|group-password|auth-password-l1|auth-password-l2|rsso|history0|history1)) .+/, '\\1 <configuration removed>'
cfg.gsub! /(set md5-key [0-9]+) .+/, '\\1 <configuration removed>'
- cfg.gsub! /(set private-key ).*?-+END ENCRYPTED PRIVATE KEY-*"$/m, '\\1<configuration removed>'
+ cfg.gsub! /(set private-key ).*?-+END (ENCRYPTED|RSA) 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>'
cfg.gsub! /(Cluster uptime:).*/, '\\1 <stripped>'