I want to create an ACL policy that allows user's to create, read, update etc data to a secrets engine based on their userpass
username.
For example, if the username is foo
I want it so that they have access to secrets/foo/*
I obviously want this to be dynamic, so I do not want to create multiple policies where I hard code these values.
path "secrets/{{identity.entity.metadata.username}}/*" {
capabilities = ["create", "read", "update", "delete", "list"]
}
But this only work when I manually add metadata to a user instead of using that user's username.
How can I achieve this using templating ?