502 body leaks the internal backend host and port to the client #37
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
proxy.rs:816-822serves the raw upstream error to the client:A
reqwestconnect error'sDisplayincludes the target URL, so an externalcaller receiving a 502 learns the internal backend's scheme, host and port.
Log it (already done on the line above), serve a generic message.
Low severity — it discloses topology, not credentials — but it is live in v1.1.0
and reachable by anyone who can make a request to a service whose backend is
down.
The same site is one of four ER-generated errors that bypass
error_responseentirely (
proxy.rs:463501,proxy.rs:642413,proxy.rs:816502,proxy.rs:823504), so they get no content negotiation and noX-Edge-Router-Fallbackheader either. Routing them througherror_responsefixes this leak as a side effect — see
specs/2026-10-20-runtime-resilience-and-error-attribution-design.md, Part 2.