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:
parent
0c427e27e9
commit
1394555a4d
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue