You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing this issue to discuss about an improvement.
Today, Consul is able to perform an HTTP health-check with a defined route (ex: /health).
It would be awesome to send a request with custom fields set in the HTTP header.
In this way, it should be possible to test:
the routing rules of a reverse proxy with the field Host,
an authentication with the field Authorization or custom
Hi guys,
I'm writing this issue to discuss about an improvement.
Today, Consul is able to perform an HTTP health-check with a defined route (ex: /health).
It would be awesome to send a request with custom fields set in the HTTP header.
In this way, it should be possible to test:
Host
,Authorization
or customOrigin
.To illustrate:
adding:
req.Header.Set("Host", "foo.bar.example.com")
here: https://github.com/hashicorp/consul/blob/master/command/agent/check.go#L415
It can be done with scripting+curl, but using the http health check would be the best practice.
Rgds
The text was updated successfully, but these errors were encountered: