Skip to content

Commit

Permalink
Add scrubbing for SonicOS (#2523)
Browse files Browse the repository at this point in the history
* Update scrubbing for sonicos.rb

Additional scrubbing for: sslvpn password, administrator password, ftp password, shared-key

* Update CHANGELOG.md

added scrubbing for hashed values: sslvpn password, administrator password, ftp password, shared-key
  • Loading branch information
televat0rs authored May 1, 2022
1 parent 5644524 commit 33d8620
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- only runs SSH proxy commands if the ssh_proxy configuration item has been defined (@jameskirsop)
- updated vrp.rb to correctly parse huawei devices
- asa: information about the configuration change time is deleted
- sonicos: added scrubbing for hashed values (@televat0rs)

### Fixed

Expand Down
4 changes: 4 additions & 0 deletions lib/oxidized/model/sonicos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ class SonicOS < Oxidized::Model
cfg.gsub! /encryption aes \d\,(\S+)/, 'encryption aes <secret hidden> \2'
cfg.gsub! /smtp-pass \d\,(\S+)/, 'smtp-pass <secret hidden> \2'
cfg.gsub! /pop-pass \d\,(\S+)/, 'pop-pass <secret hidden> \2'
cfg.gsub! /sslvpn password \d\,(\S+)/, 'sslvpn password <secret hidden> \2'
cfg.gsub! /administrator password \d\,(\S+)/, 'administrator password <secret hidden> \2'
cfg.gsub! /ftp password \d\,(\S+)/, 'ftp password <secret hidden> \2'
cfg.gsub! /shared-key \d\,(\S+)/, 'shared-key <secret hidden> \2'
cfg
end

Expand Down

0 comments on commit 33d8620

Please sign in to comment.