Skip to content

Commit

Permalink
Hide db last update
Browse files Browse the repository at this point in the history
Everyday the IPS URL db is updated and so the configuration is "changed". I believe this information spams the diff config and my team and I just decided to replace it by a unique string. Maybe instead of putting this in the :secret, we could create an other var or something that can be specified in the conf. Don't know what you think of this ;-)
  • Loading branch information
brunobritocarvalho authored Aug 29, 2017
1 parent a417401 commit eb437cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/oxidized/model/fortios.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class FortiOS < Oxidized::Model
cmd :secret do |cfg|
cfg.gsub! /(set (?:passwd|password|secondary-secret|rsso-secret|psksecret|secret|key ENC)).*/, '\\1 <configuration removed>'
cfg.gsub! /(set private-key).*-+END ENCRYPTED PRIVATE KEY-*"$/m , '\\1 <configuration removed>'
cfg.gsub! /(IPS Malicious URL Database).*/, '\\1 <configuration removed>'
cfg
end

Expand Down

0 comments on commit eb437cc

Please sign in to comment.