summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorroot <oh@onsteroids.net>2017-02-16 09:08:08 +0100
committerroot <oh@onsteroids.net>2017-02-16 13:24:16 +0100
commitc89503a8b2c53d9ee2a1fc8020ecc5fba600a891 (patch)
treee0e80a7404f72518f19b15bf1ce9c59fb0c9c06b /lib
parent84921f07587efe8c92f3e4576ba6ac016b33a951 (diff)
added psk and private-key removal to secret section
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/model/fortios.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/oxidized/model/fortios.rb b/lib/oxidized/model/fortios.rb
index cdb50d5..3cfd102 100644
--- a/lib/oxidized/model/fortios.rb
+++ b/lib/oxidized/model/fortios.rb
@@ -15,7 +15,8 @@ class FortiOS < Oxidized::Model
end
cmd :secret do |cfg|
- cfg.gsub! /(set (?:passwd|password)).*/, '\\1 <configuration removed>'
+ cfg.gsub! /(set (?:passwd|password|psksecret)).*/, '\\1 <configuration removed>'
+ cfg.gsub! /(set private-key).*-+END ENCRYPTED PRIVATE KEY-*"$/m , '\\1 <configuration removed>'
cfg
end