diff options
author | SoulGit <adam@furmantation.com> | 2018-09-12 07:30:49 -0700 |
---|---|---|
committer | Wild Kat <wk@users.noreply.github.com> | 2018-09-12 16:30:49 +0200 |
commit | 0360043ba5daadade47d487e7740da6eec9eb68e (patch) | |
tree | 4e17c812ed61a94f87014e7c610267b909f745be /lib/oxidized | |
parent | 9ad36797b222f859f2123f4275751f9d5cf98b69 (diff) |
Add fortios fields to be masked by remove_secret flag (#1511)
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/model/fortios.rb | 2 |
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>' |