Mint netbox user-management token dynamically #184
@@ -42,7 +42,6 @@ description: "NetBox ephemeral scoped API token engine"
|
||||
netbox_url: "https://netbox.k8s.syd1.au.unkin.net"
|
||||
token_version: 2
|
||||
request_timeout_seconds: 30
|
||||
# Set to the pre-existing NetBox superuser admin_token belongs to, to mint the
|
||||
# user-management credential dynamically (recommended). Until set, user management
|
||||
# uses admin_token directly and a check block warns that rotation will break it.
|
||||
# user_mgmt_username: "vault-netbox-admin"
|
||||
# NetBox superuser the user-management credential is minted for (via
|
||||
# netbox/roles/vault-user-mgmt), so rotating admin_token does not break it.
|
||||
user_mgmt_username: "admin"
|
||||
|
||||
@@ -35,6 +35,11 @@ provider "arrstack" {
|
||||
address = local.vault_addr
|
||||
}
|
||||
|
||||
import {
|
||||
to = module.netbox_user_mgmt_role["netbox"].netbox_secret_backend_role.this
|
||||
id = "netbox/roles/vault-user-mgmt"
|
||||
}
|
||||
|
||||
terraform {
|
||||
backend "consul" {
|
||||
address = "https://consul.service.consul"
|
||||
@@ -69,6 +74,10 @@ terraform {
|
||||
source = "artifactapi.k8s.syd1.au.unkin.net/terraform-unkin/vault-secrets-arrstack"
|
||||
version = "0.2.0"
|
||||
}
|
||||
netbox = {
|
||||
source = "artifactapi.k8s.syd1.au.unkin.net/terraform-unkin/vault-secrets-netbox"
|
||||
version = "0.1.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user