Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6e7a052293 | |||
| ba5f49f358 | |||
| 92b8fdd0dd |
+1
-1
@@ -1,5 +1,5 @@
|
||||
bound_service_account_names:
|
||||
- terraform-ipam
|
||||
- terraform-infra
|
||||
bound_service_account_namespaces:
|
||||
- woodpecker
|
||||
token_ttl: 600
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
consul_roles:
|
||||
- terraform-ipam
|
||||
- terraform-infra
|
||||
ttl: 120
|
||||
max_ttl: 300
|
||||
datacenters: []
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
rules:
|
||||
- path: "consul_root/au/syd1/creds/terraform-infra"
|
||||
capabilities:
|
||||
- read
|
||||
|
||||
auth:
|
||||
approle:
|
||||
- terraform_infra
|
||||
k8s/au/syd1:
|
||||
- woodpecker_terraform_infra
|
||||
@@ -1,11 +0,0 @@
|
||||
---
|
||||
rules:
|
||||
- path: "consul_root/au/syd1/creds/terraform-ipam"
|
||||
capabilities:
|
||||
- read
|
||||
|
||||
auth:
|
||||
approle:
|
||||
- terraform_ipam
|
||||
k8s/au/syd1:
|
||||
- woodpecker_terraform_ipam
|
||||
@@ -0,0 +1,18 @@
|
||||
# Allow the terraform-infra runner to read the NetBox + KeaAPI tokens
|
||||
# (netbox_token / kea_token fields) used by the netbox and kea providers.
|
||||
---
|
||||
rules:
|
||||
- path: "kv/data/service/terraform/infra"
|
||||
capabilities:
|
||||
- read
|
||||
# vault_kv_secret_v2 (providers.tf data source) reads the kv-v2 metadata path
|
||||
# on every plan/apply; a 403 here fails the plan.
|
||||
- path: "kv/metadata/service/terraform/infra"
|
||||
capabilities:
|
||||
- read
|
||||
|
||||
auth:
|
||||
approle:
|
||||
- terraform_infra
|
||||
k8s/au/syd1:
|
||||
- woodpecker_terraform_infra
|
||||
@@ -1,13 +0,0 @@
|
||||
# Allow the Terraform IPAM runner to read the NetBox + KeaAPI tokens
|
||||
# (netbox_token / kea_token fields) used by the netbox and kea providers.
|
||||
---
|
||||
rules:
|
||||
- path: "kv/data/service/terraform/ipam"
|
||||
capabilities:
|
||||
- read
|
||||
|
||||
auth:
|
||||
approle:
|
||||
- terraform_ipam
|
||||
k8s/au/syd1:
|
||||
- woodpecker_terraform_ipam
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
key_prefix "infra/terraform/ipam/" {
|
||||
key_prefix "infra/terraform/infra/" {
|
||||
policy = "write"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user