carlos / platform Public

health-check-no-redirects-845

Human

Fixes #845. A Rails app with force_ssl answered the health probe with a 301 to https; the probe followed it into a TLS handshake on a plain socket and the instance never became healthy. Both probes (socket and TCP) now stop at the first answer and send X-Forwarded-Proto: https, as the edge does. Separately, reasonWord matched 'staging' inside the host name and reported a health failure as 'the copy on the box did not match the release'; it now ignores dotted names (hosts, addresses, versions).

Commits 4
Discussions 0 0 open
Tasks 5/5 done

Activity