summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-12-14 15:01:37 +0200
committerGitHub <noreply@github.com>2016-12-14 15:01:37 +0200
commit1466f0f635d1e014ea993179729306d3a9a8d381 (patch)
tree3f9e2eb2efbbd68a4c9399532ff6731a927db0d8
parentbc64aaa7971070e21300eb1b15846ec1c7b4fdcb (diff)
parent72bc119966b20eb239c989ceb833051791f44007 (diff)
Merge pull request #641 from mattttv/master
delete secret password if it is called secret
-rw-r--r--lib/oxidized/model/ios.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/oxidized/model/ios.rb b/lib/oxidized/model/ios.rb
index 1f099c8..3cbe0f0 100644
--- a/lib/oxidized/model/ios.rb
+++ b/lib/oxidized/model/ios.rb
@@ -26,7 +26,9 @@ class IOS < Oxidized::Model
cfg.gsub! /^(snmp-server community).*/, '\\1 <configuration removed>'
cfg.gsub! /username (\S+) privilege (\d+) (\S+).*/, '<secret hidden>'
cfg.gsub! /^username \S+ password \d \S+/, '<secret hidden>'
+ cfg.gsub! /^username \S+ secret \d \S+/, '<secret hidden>'
cfg.gsub! /^enable password \d \S+/, '<secret hidden>'
+ cfg.gsub! /^enable secret \d \S+/, '<secret hidden>'
cfg.gsub! /wpa-psk ascii \d \S+/, '<secret hidden>'
cfg.gsub! /^tacacs-server key \d \S+/, '<secret hidden>'
cfg