backport of commit 657ee3107a (#20893)

Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>
This commit is contained in:
hc-github-team-secure-vault-core
2023-05-31 12:02:51 -04:00
committed by GitHub
parent 7a0755b45f
commit e41e43bafb
2 changed files with 5 additions and 1 deletions

View File

@@ -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
View File

@@ -0,0 +1,4 @@
```release-note:improvement
secrets/consul: Improve error message when ACL bootstrapping fails.
```