backport of commit 657ee3107a10b85b5e72cf1992a4410f8107e8e9 (#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 e3e947b386
commit e5f1ff2548
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.
```