mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Add separate path for capabilities-self to enable ACL
This commit is contained in:
@@ -44,10 +44,7 @@ func Handler(core *vault.Core) http.Handler {
|
||||
}
|
||||
|
||||
func sysCapabilitiesCallback(req *logical.Request) error {
|
||||
if req.Path == "sys/capabilities-self" {
|
||||
req.Path = "sys/capabilities"
|
||||
req.Data["token"] = req.ClientToken
|
||||
}
|
||||
req.Data["token"] = req.ClientToken
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user