cloudfoundry / haproxy-boshrelease

A BOSH release for haproxy (based on cf-release's haproxy job)
Apache License 2.0
38 stars 81 forks source link

fix(expect-proxy): provide alternative health endpoint for expect_proxy_cidrs #717

Closed peanball closed 3 weeks ago

peanball commented 3 weeks ago

expect_proxy_cidrs is used for dynamically determining whether proxy protocol should be used or not. On AWS the health check and regular traffic are forwarded with or without proxy protocol.

The idea of adding the expect-proxy directive CIDRs for AWS load balancer IP addresses as a "marker" for traffic that should become Proxy Protocol, while other traffic (including transparently proxied traffic) remains without Proxy Protocol.

By adding a new health endpoint, when expect_proxy_cidrs is set, the operator can select, which endpoint to use for checking the health of HAProxy.