Skip to content

Commit

Permalink
Merge pull request #3099 from gauthierl/vyatta
Browse files Browse the repository at this point in the history
model vyatta: hide wireguard private-key and preshared-key
  • Loading branch information
robertcheramy authored Mar 11, 2024
2 parents 6e27165 + 526f3a8 commit dee06bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/oxidized/model/vyatta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class Vyatta < Oxidized::Model
cfg.gsub! /password (\S+).*/, 'password <secret removed>'
cfg.gsub! /pre-shared-secret (\S+).*/, 'pre-shared-secret <secret removed>'
cfg.gsub! /community (\S+) {/, 'community <hidden> {'
cfg.gsub! /private-key (\S+).*/, 'private-key <secret removed>'
cfg.gsub! /preshared-key (\S+).*/, 'preshared-key <secret removed>'
cfg
end

Expand Down

0 comments on commit dee06bb

Please sign in to comment.