mirror of https://github.com/hashicorp/consul
Fix ACL check on health endpoint (#17424)
Fix ACL check on health endpoint Prior to this change, the service health API would not explicitly return an error whenever a token with invalid permissions was given, and it would instead return empty results. With this change, a "Permission denied" error is returned whenever data is queried. This is done to better support the agent cache, which performs a fetch backoff sleep whenever ACL errors are encountered. Affected endpoints are: `/v1/health/connect/` and `/v1/health/ingress/`.pull/17459/head
parent
e2f15cfe56
commit
a90c9ce2b0
@ -0,0 +1,3 @@
|
|||||||
|
```release-note:breaking-change
|
||||||
|
api: The `/v1/health/connect/` and `/v1/health/ingress/` endpoints now immediately return 403 "Permission Denied" errors whenever a token with insufficient `service:read` permissions is provided. Prior to this change, the endpoints returned a success code with an empty result list when a token with insufficient permissions was provided.
|
||||||
|
```
|
Loading…
Reference in new issue