mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-03 03:58:01 +00:00
backport of commit 657ee3107a (#20893)
Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
7a0755b45f
commit
e41e43bafb
@@ -135,7 +135,7 @@ func (b *backend) pathConfigAccessWrite(ctx context.Context, req *logical.Reques
|
|||||||
}
|
}
|
||||||
token, _, err := client.ACL().Bootstrap()
|
token, _, err := client.ACL().Bootstrap()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return logical.ErrorResponse("Token not provided and failed to bootstrap ACLs"), err
|
return logical.ErrorResponse("Token not provided and failed to bootstrap ACLs: %s", err), nil
|
||||||
}
|
}
|
||||||
config.Token = token.SecretID
|
config.Token = token.SecretID
|
||||||
}
|
}
|
||||||
|
|||||||
4
changelog/20891.txt
Normal file
4
changelog/20891.txt
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
```release-note:improvement
|
||||||
|
secrets/consul: Improve error message when ACL bootstrapping fails.
|
||||||
|
```
|
||||||
|
|
||||||
Reference in New Issue
Block a user