I’ve configured all of my device backups within LibreNMS to remove secrets/password hashes/etc. upon saving. This works flawlessly on all device models I’ve tried, except Aruba Wireless (aosw). AOSW has been a struggle to backup from the beginning, requiring a good bit of modification to the aosw.rb file just to get the backups working correctly. I suspect the rb file needs further modification to make this work, but I can’t say I’m very proficient in Ruby. Asking the community for help in getting this working.
Here’s a line of code from my aosw.rb file that should remove the enable secret value but does not:
cfg.gsub!(/enable secret (\S+)$/, ‘enable secret ’)
Here’s a line of code from my comware.rb file that works correctly:
cfg.gsub! /^( password hash).*/, ‘\1 ’
Did you figure this out? I’m running into the same issue and I don’t know why it’s not removing the secrets. I’m actually fine with the secrets being there, but they change every time a new SSH session is created, so it’s creating a bunch of versions when nothing has changed.
Thanks for the response. That’s exactly what I ended up doing.
Not the ideal solution as my backup configs now have cleartext passwords, but it’s better than the alternative.