TheNetworkGuy / netbox-zabbix-sync

Python script to synchronise Netbox devices to Zabbix.
MIT License
118 stars 27 forks source link

Use Netbox secrets feature to retrieve SNMP details #4

Closed TheNetworkGuy closed 3 years ago

TheNetworkGuy commented 3 years ago

With #2 being implemented, passwords are saved in plain-text in the Netbox config context.

It would be much better to retrieve these values in a secrets format. This would eliminate settings passwords in plain text.

I'm thinking of an argument "-s" which would enable this functionality. This will require a Netbox private key stored in an environment variable. After that its a simple check if the SNMP value exists in secrets format. If not, fall back to values specified in the plain config context.

TheNetworkGuy commented 3 years ago

Fixed with #5