mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-03 20:40:45 -05:00
Improve consul secrets plugin error for failed bootstrap (#20891)
This commit is contained in:
parent
a18b10ecae
commit
657ee3107a
2 changed files with 5 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ func (b *backend) pathConfigAccessWrite(ctx context.Context, req *logical.Reques
|
|||
}
|
||||
token, _, err := client.ACL().Bootstrap()
|
||||
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
|
||||
}
|
||||
|
|
|
|||
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.
|
||||
```
|
||||
|
||||
Loading…
Reference in a new issue