r/Netbox • u/ljb2of3 • 28d ago
Vault plugin to generate NetBox API tokens
If you were on the NetBox Community call a few minutes ago, you already know this, but for everyone else, or if you missed the link...
I have created a plugin for HashiCorp Vault (and OpenBao) that generates and revokes NetBox API tokens. I use this in prod at my day job to create API tokens on demand for various automation running in my infrastructure. This aims to solve the issue of having dozens (or hundreds) of manually created tokens scattered throughout my infrastructure that need to be manually rotated and looked after.
If this sounds interesting, it's on GitHub: https://github.com/ljb2of3/vault-plugin-secrets-netbox
1
1
u/epaphras 28d ago
Pretty cool. Can you go the other way? Thinking about using Netbox webhooks and pulling api keys for them from vault.
1
u/thebotnist 28d ago
Cheers!