Initial NetBox token secrets engine #1
Reference in New Issue
Block a user
Delete Branch "benvin/netbox-secrets-engine"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
CI jobs and Puppet fact collectors hold long-lived NetBox tokens that are hard to rotate and easy to leak; a leaked token is standing API access until someone notices and hand-rotates it.
How
config;roles/<name>names a pre-existing NetBox service user pluswrite_enabled(default false) andttl/max_ttl.creds/<role>mints a per-user token whose NetBoxexpiresis aligned to the Vault lease; revoke deletes it, renew PATCHesexpiresforward.config/rotatereissues the seeded admin token (NetBox has no in-place rotate).Bearer nbt_<key>.<secret>) and legacy v1 (Token <value>);token_versionis selectable for peppers-less servers.rpm-internal.979f42a578tocfbc06669e