Replies: 1 comment
-
I had the same problem and the same idea. AFAIK you can't query data in jinja templates in netbox. I haven't found a good solution for storing secrets and using them in plaintext in a config template. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to store the device configuration passwords in the Netbox Secrets plugin. The idea is that when rendering the configuration in Netbox I specify the session key in advance. So the configuration is generated with all passwords. If there is no session key, no password information is included in the rendered configurations.
The problem I'm having is that I don't know how to access the netbox-secrets plugin's plaintext password in a Jinja2 template.
I have no idea where to look - the hierarchy in the Swaager UI doesn't work.
There may be a better solution to store the sensitive data for the device configurations.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions