From 08039667162c4ca3d46a0197080d7c678613911c Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Sat, 25 May 2024 18:35:35 +0200 Subject: [PATCH] fix: templating not working for arrays --- policies/tenant-admins.policy.hcl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/policies/tenant-admins.policy.hcl b/policies/tenant-admins.policy.hcl index 4452113..4bb671e 100644 --- a/policies/tenant-admins.policy.hcl +++ b/policies/tenant-admins.policy.hcl @@ -9,6 +9,9 @@ path "sys/mounts/${tenant_prefix}/*" { path "auth/token/create" { capabilities = ["create", "update", "delete"] allowed_parameters = { - "policies" = [${admin_policies}, ${reverse(admin_policies)}] + "policies" = [ + [${for policy in admin_policies}${policy},${endfor}], + [${for policy in reverse(admin_policies)}${policy},${endfor}] + ] } }