mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-09 08:55:13 -04:00
parent
77c5239dc8
commit
43e9bcd948
2 changed files with 15 additions and 1 deletions
|
|
@ -159,7 +159,7 @@ func NewTokenStore(ctx context.Context, c *Core, config *logical.BackendConfig)
|
|||
},
|
||||
|
||||
&framework.Path{
|
||||
Pattern: "accessors/?$",
|
||||
Pattern: "accessors/$",
|
||||
|
||||
Callbacks: map[logical.Operation]framework.OperationFunc{
|
||||
logical.ListOperation: t.tokenStoreAccessorList,
|
||||
|
|
|
|||
|
|
@ -161,6 +161,20 @@ policy for `"secret/foo*"`, the policy would also match `"secret/foobar"`.
|
|||
!> The glob character is only supported as the **last character of the path**,
|
||||
and **is not a regular expression**!
|
||||
|
||||
When providing `list` capability, it is important to note that since listing
|
||||
always operates on a prefix, policies must operate on a prefix because Vault
|
||||
will sanitize request paths to be prefixes:
|
||||
|
||||
```ruby
|
||||
path "secret/foo" {
|
||||
capabilities = ["read"]
|
||||
}
|
||||
|
||||
path "secret/foo/" {
|
||||
capabilities = ["list"]
|
||||
}
|
||||
```
|
||||
|
||||
### Capabilities
|
||||
|
||||
Each path must define one or more capabilities which provide fine-grained
|
||||
|
|
|
|||
Loading…
Reference in a new issue