Skip to content

Commit

Permalink
Merge pull request #3146 from iriseden/master
Browse files Browse the repository at this point in the history
Hide radius and snmp secrets for Arista EOS
  • Loading branch information
robertcheramy committed May 13, 2024
2 parents 9fc17cf + 6d76d9d commit d3dffb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
### Changed
- h3c: change prompt to expect either angle (user-view) or square (system-view) brackets (@nl987)
- xos: Hide radius and user secrets for XOS (@iriseden)
- eos: Hide radius and snmp secrets for Arista EOS (@iriseden)

### Fixed
- fixed prompt for vyos/vyatta to allow logins with non-priviliged accounts. Fixes #3111 (@h-lopez)
Expand Down
2 changes: 2 additions & 0 deletions lib/oxidized/model/eos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class EOS < Oxidized::Model
cfg.gsub! /^(enable (?:secret|password)).*/, '\\1 <configuration removed>'
cfg.gsub! /^(service unsupported-transceiver).*/, '\\1 <license key removed>'
cfg.gsub! /^(tacacs-server key \d+).*/, '\\1 <configuration removed>'
cfg.gsub! /^(radius-server .+ key \d) \S+/, '\\1 <radius secret hidden>'
cfg.gsub! /( {6}key) (\h+ 7) (\h+).*/, '\\1 <secret hidden>'
cfg.gsub! /(localized|auth (md5|sha\d{0,3})|priv (des|aes\d{0,3})) \S+/, '\\1 <secret hidden>'
cfg
end

Expand Down

0 comments on commit d3dffb5

Please sign in to comment.