mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 04:16:31 +02:00
parent
77c5239dc8
commit
43e9bcd948
@ -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…
x
Reference in New Issue
Block a user