Add listing of cubbyhole's root to the default policy.

This allows `vault list cubbyhole` to behave as expected rather than
requiring `vault list cubbyhole/`. It could be special cased in logic,
but it also serves as a model for the same behavior in e.g. `generic`
mounts where special casing is not possible due to unforeseen mount
paths.
This commit is contained in:
Jeff Mitchell 2016-02-03 13:50:47 -05:00
parent 0c427e27e9
commit 1394555a4d
1 changed files with 4 additions and 0 deletions

View File

@ -221,6 +221,10 @@ path "auth/token/revoke-self" {
path "cubbyhole/*" {
capabilities = ["create", "read", "update", "delete", "list"]
}
path "cubbyhole" {
capabilities = ["list"]
}
`)
if err != nil {
return errwrap.Wrapf("error parsing default policy: {{err}}", err)