Skip to content

Commit

Permalink
More secret scrubbing in SonicOS (#1938)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-fu authored and wk committed Jan 19, 2020
1 parent 6e9324c commit ca54d6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* FEATURE: add Waystream iBOS model
* BUGFIX: better login modalities for telnet in aos7 (@optimuscream)
* BUGFIX: better virtual domain detection in fortios (@agabellini)
* MISC: more secret scrubbing in sonicos (@s-fu)
* MISC: openssh key scrubbing as secret in fortios (@agabellini)

## 0.27.0
Expand Down
5 changes: 5 additions & 0 deletions lib/oxidized/model/sonicos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ class SonicOS < Oxidized::Model
cfg.gsub! /cli ftp password default \d\,(\S+)/, 'cli ftp password default <secret hidden> \2'
cfg.gsub! /secret \d\,(\S+)/, 'secret <secret hidden> \2'
cfg.gsub! /shared-secret \d\,(\S+)/, 'shared-secret <secret hidden> \2'
cfg.gsub! /password \d\,(\S+)/, 'password <secret hidden> \2'
cfg.gsub! /passphrase password \d\,(\S+)/, 'passphrase password <secret hidden> \2'
cfg.gsub! /bind-password \d\,(\S+)/, 'bind-password <secret hidden> \2'
cfg.gsub! /authentication sha1 \d\,(\S+)/, 'authentication sha1 <secret hidden> \2'
cfg.gsub! /encryption aes \d\,(\S+)/, 'encryption aes <secret hidden> \2'
cfg
end

Expand Down

0 comments on commit ca54d6a

Please sign in to comment.