mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 11:08:10 +00:00
Improve consul secrets plugin error for failed bootstrap (#20891)
This commit is contained in:
@@ -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