fix: templating not working for arrays
All checks were successful
development / Check commit compliance (push) Successful in 4s
pull-requests-open / Check commit compliance (pull_request) Successful in 5s

This commit is contained in:
Bertrand Lanson 2024-05-25 18:35:35 +02:00
parent 8a5a85f33f
commit 0803966716
Signed by: lanson
SSH Key Fingerprint: SHA256:/nqc6HGqld/PS208F6FUOvZlUzTS0rGpNNwR5O2bQBw

View File

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