feat: add repoflow tokens

- add approle for terraform-repoflow
- add policies to access repoflow tokens
This commit is contained in:
Ben Vincent 2025-12-13 10:09:29 +11:00
parent 2466a6fe5c
commit 9814b8fc1a
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,16 @@
resource "vault_approle_auth_backend_role" "terraform_repoflow" {
role_name = "terraform_repoflow"
bind_secret_id = false
token_policies = [
"default_access",
"kv/service/repoflow/unkinadmin/tokens/terraform/read",
]
token_ttl = 60
token_max_ttl = 120
token_bound_cidrs = [
"10.10.12.200/32",
"198.18.25.102/32",
"198.18.26.91/32",
"198.18.27.40/32",
]
}

View File

@ -0,0 +1,3 @@
path "kv/data/service/repoflow/unkinadmin/tokens/terraform" {
capabilities = ["read"]
}