Use capabilities rather than policies in default policy. Also add cubbyhole to it.
This commit is contained in:
parent
9857da207c
commit
b830e29449
|
@ -207,15 +207,19 @@ func (ps *PolicyStore) ACL(names ...string) (*ACL, error) {
|
|||
func (ps *PolicyStore) createDefaultPolicy() error {
|
||||
policy, err := Parse(`
|
||||
path "auth/token/lookup-self" {
|
||||
policy = "read"
|
||||
capabilities = ["read"]
|
||||
}
|
||||
|
||||
path "auth/token/renew-self" {
|
||||
policy = "write"
|
||||
capabilities = ["update"]
|
||||
}
|
||||
|
||||
path "auth/token/revoke-self" {
|
||||
policy = "write"
|
||||
capabilities = ["update"]
|
||||
}
|
||||
|
||||
path "cubbyhole/*" {
|
||||
capabilities = ["create", "read", "update", "delete", "list"]
|
||||
}
|
||||
`)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue