terraform-vault-tenant/policies/tenant-admins.policy.hcl
Bertrand Lanson 0803966716
All checks were successful
development / Check commit compliance (push) Successful in 4s
pull-requests-open / Check commit compliance (pull_request) Successful in 5s
fix: templating not working for arrays
2024-05-25 18:35:35 +02:00

18 lines
460 B
HCL

path "${tenant_prefix}/*" {
capabilities = ["create", "update", "read", "delete", "list"]
}
path "sys/mounts/${tenant_prefix}/*" {
capabilities = ["create", "update", "read", "delete", "list"]
}
path "auth/token/create" {
capabilities = ["create", "update", "delete"]
allowed_parameters = {
"policies" = [
[${for policy in admin_policies}${policy},${endfor}],
[${for policy in reverse(admin_policies)}${policy},${endfor}]
]
}
}