terraform-vault-tenant/policies/tenant-admins.policy.hcl
Bertrand Lanson 154a3ba98a
All checks were successful
development / Check commit compliance (push) Successful in 5s
pull-requests-open / Check commit compliance (pull_request) Successful in 4s
fix: increase permissions for remounting secret engines
2024-05-26 15:20:18 +02:00

20 lines
410 B
HCL

path "${tenant_prefix}/*" {
capabilities = ["create", "update", "read", "delete", "list"]
}
path "sys/mounts/${tenant_prefix}/*" {
capabilities = ["create", "update", "read", "delete", "list"]
}
path "sys/remount" {
capabilities = ["update"]
allowed_parameters = {
"from" = ["${tenant_prefix}/*"]
"to" = ["${tenant_prefix}/*"]
}
}
path "sys/remount/status/*" {
capabilities = ["read"]
}