Hello,
I was wondering why I cannot use list to see the items under secret/myorg
.
I’m using version 2 of the kv secret engine on the path secret/
.
This is what the policy looks like:
root@vault-0:~# vault policy read myorg-standard
# glob - prefix match
path "secret/data/myorg/*" {
capabilities = [ "read", "create", "list" ]
}
path "secret/data/myorg/admin-secret" {
capabilities = [ "deny" ]
}
I can confirm that this is the policy I’m using, as vault lookup token
displays it:
path auth/upass/login/orgops
policies [default myorg-standard]
So when I try either:
vault kv list secret/myorg
I get permission denied:
Error listing secret/metadata/myorg: Error making API request.
URL: GET https://127.0.0.1:8200/v1/secret/metadata/myorg?list=true
Code: 403. Errors:
* 1 error occurred:
* permission denied
Now it’s just occurred to me that maybe with those permissions I’m able to list only what is under any folder under myorg
, so I cannot list the folders themselves.
But neither this
path "secret/data/myorg/" {
capabilities = [ "list" ]
}
nor this
path "secret/data/" {
capabilities = [ "list" ]
}
has worked.
Any ideas are welcome!