From 3efcd35e4bcebbff79c4dcd9ac024a1957a5b8f2 Mon Sep 17 00:00:00 2001 From: Andreas Loibl Date: Fri, 13 Jul 2018 13:11:05 +0200 Subject: fortios: mask "md5-key" secrets format to match: set md5-key "" --- lib/oxidized/model/fortios.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/oxidized') diff --git a/lib/oxidized/model/fortios.rb b/lib/oxidized/model/fortios.rb index e9ccbc4..6a61aeb 100644 --- a/lib/oxidized/model/fortios.rb +++ b/lib/oxidized/model/fortios.rb @@ -19,6 +19,7 @@ class FortiOS < Oxidized::Model cfg.gsub! /(set .*secret) .+/, '\\1 ' # 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 ca ).*?-+END CERTIFICATE-*"$/m, '\\1' cfg.gsub! /(set csr ).*?-+END CERTIFICATE REQUEST-*"$/m, '\\1' -- cgit v1.2.1