I’m experimenting with Vault’s policies and I want to create one that allows a user logging in with Userpass to use the Vault webpage GUI to navigate to her secrets at ‘secrets/data/users/maggie’ without seeing the other users that exist at ‘secrets/data/users/bob’.
I have been able to get to the point that she can see all the users, but she cannot access their data. What I would like to get to is where she can only see her user.
path "secret/data/users/maggie/*" {
capabilities = ["create", "read", "update", "delete", "list"]
}
path "secret/metadata" {
capabilities = ["list"]
}
path "secret/metadata/users" {
capabilities = ["list"]
}
path "secret/metadata/users/maggie" {
capabilities = ["list"]
}
If I change the ACLs to:
path "secret/data/users/maggie/*" {
capabilities = ["create", "read", "update", "delete", "list"]
}
path "secret/metadata" {
capabilities = ["list"]
}
// removing 'secret/metadata/users'
path "secret/metadata/users/maggie" {
capabilities = ["list"]
}
She cannot see herself. She can change the URL to include her name, but I’d like to for her to be able to use the GUI.
Any tips? This is one of the areas I’m weak in with respect to Vault.
(OR, is this an example of this Issue https://github.com/hashicorp/vault/issues/5362 ?)