mirror of https://github.com/hashicorp/consul
Browse Source
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
Derek Menteer
2 years ago
committed by
GitHub
4 changed files with 24 additions and 15 deletions
@ -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