From 0360043ba5daadade47d487e7740da6eec9eb68e Mon Sep 17 00:00:00 2001 From: SoulGit Date: Wed, 12 Sep 2018 07:30:49 -0700 Subject: Add fortios fields to be masked by remove_secret flag (#1511) --- lib/oxidized/model/fortios.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 ' cfg.gsub! /(set md5-key [0-9]+) .+/, '\\1 ' - cfg.gsub! /(set private-key ).*?-+END ENCRYPTED PRIVATE KEY-*"$/m, '\\1' + cfg.gsub! /(set private-key ).*?-+END (ENCRYPTED|RSA) PRIVATE KEY-*"$/m, '\\1' cfg.gsub! /(set ca ).*?-+END CERTIFICATE-*"$/m, '\\1' cfg.gsub! /(set csr ).*?-+END CERTIFICATE REQUEST-*"$/m, '\\1' cfg.gsub! /(Cluster uptime:).*/, '\\1 ' -- cgit v1.2.1