Replace the terraform-infra Vault identity with terraform-netbox #161

Merged
benvin merged 2 commits from benvin/terraform-netbox-identity into master 2026-10-03 09:39:11 +10:00

2 Commits

Author SHA1 Message Date
unkin-agent f4ca90bd57 Remove the orphaned woodpecker_terraform_infra auth role
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Renaming its policies left the role bound to nothing, and the module
indexes policy_auth_map by role name, so the plan failed with Invalid
index. woodpecker_terraform_netbox replaces it.
2026-10-03 09:35:47 +10:00
unkin-agent 2870ae7e25 Replace the terraform-infra Vault identity with terraform-netbox
ci/woodpecker/pr/plan Pipeline failed
ci/woodpecker/pr/pre-commit Pipeline was successful
terraform-netbox supersedes terraform-infra but has no identity to run as:
the terraform-infra policies bind to a terraform_infra approle and a
woodpecker_terraform_infra k8s role that were never created.

- rename the netbox and consul creds policies, the engine role and the
  consul ACL rules to terraform-netbox
- add the terraform_netbox approle and woodpecker_terraform_netbox k8s role
- grant the engine role extras.customfield, dcim.platform and the device
  inventory types the module creates
- drop the kv/service/terraform/infra policy: the kea_token is gone with Kea
  and the NetBox token is minted per run
2026-10-03 09:25:38 +10:00