From 752760ba9c8be464553c1742313575889477ea46 Mon Sep 17 00:00:00 2001 From: z00nx 0 Date: Sun, 6 May 2018 18:10:38 +1000 Subject: Added removal of secrets to pfsense --- lib/oxidized/model/pfsense.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/oxidized/model/pfsense.rb b/lib/oxidized/model/pfsense.rb index 278a126..13a6370 100644 --- a/lib/oxidized/model/pfsense.rb +++ b/lib/oxidized/model/pfsense.rb @@ -5,6 +5,12 @@ class PfSense < Oxidized::Model cfg.each_line.to_a[1..-1].join end + cmd :secret do |cfg| + cfg.gsub! /(\s+)[^<]+(<\/bcrypt-hash>)/, '\\1