Hi there,
I am trying to use a template policy that dynamically allows users to have permissions based on the group they belongs to.
- Auth method: Okta
Let’s say I have group A and group B and I want any member of group A to be able to see secrets under stage/A/* , and any user of group B to have permissions on stage/B/* and prod/B/*
I created the below policy but it’s not working, not sure if I have configured this wrongly or it’s not supported for auth/okta
# View k/v secrets
path "stage/{{identity.entity.alias.auth_okta_accessor.metadata.groups}}/*" {
capabilities = ["read", "list"]
}
path "prod/{{identity.entity.alias.auth_okta_accessor.metadata.groups}}/*" {
capabilities = ["read", "list"]
}
Would appreciate your input on how to make templated policies for okta provider.
cheers,
Abeer