diff options
author | Ross W <rwolfson@users.noreply.github.com> | 2017-02-22 22:41:03 +0000 |
---|---|---|
committer | Ross W <rwolfson@users.noreply.github.com> | 2017-02-22 23:12:27 +0000 |
commit | 0f6f73b84e0731f385fe554016099ec1593135a8 (patch) | |
tree | 9aad3bfacf9adc433f314060d12b77d7a0fcc7e4 /lib/oxidized/model | |
parent | 4d2cd41b0a24dee4b14c923baff749d247410861 (diff) |
Updates to ASA secret filtering
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r-- | lib/oxidized/model/asa.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/oxidized/model/asa.rb b/lib/oxidized/model/asa.rb index df30059..038dd6b 100644 --- a/lib/oxidized/model/asa.rb +++ b/lib/oxidized/model/asa.rb @@ -13,9 +13,10 @@ class ASA < Oxidized::Model cmd :secret do |cfg| cfg.gsub! /enable password (\S+) (.*)/, 'enable password <secret hidden> \2' cfg.gsub! /username (\S+) password (\S+) (.*)/, 'username \1 password <secret hidden> \3' - cfg.gsub! /ikev2 pre-shared-key (\S+)/, 'ikev2 pre-shared-key <secret hidden>' - cfg.gsub! /ikev2 (remote|local)-authentication pre-shared-key (\S+)/, 'ikev2 \1-authentication pre-shared-key <secret hidden>' + cfg.gsub! /(ikev[12] ((remote|local)-authentication )?pre-shared-key) (\S+)/, '\1 <secret hidden>' cfg.gsub! /^(aaa-server TACACS\+? \(\S+\) host.*\n\skey) \S+$/mi, '\1 <secret hidden>' + cfg.gsub! /ldap-login-password (\S+)/, 'ldap-login-password <secret hidden>' + cfg.gsub! /^snmp-server host (.*) community (\S+)/, 'snmp-server host \1 community <secret hidden>' cfg end |