Files
Xen-Orchestra-xen-orchestra…/packages
Mathieu 505ac6caf5 fix(xo-server): keep localhost proxy targets on wildcard binds (#10335)
* fix(xo-server): keep localhost proxy targets on wildcard binds

Since 82f047ef9 (#9572), [http.proxies] targets pointing at localhost are
rewritten to the hostname of the HTTPS listen config. With the default XOA
config (hostname = '0.0.0.0') this produced targets such as
http://0.0.0.0:9004/metrics and, worse, routed these internal requests
through the proxy-aware HTTP agent: with an httpProxy configured,
/openmetrics scrapes left the appliance for the corporate proxy and were
denied there.

Only rewrite when the bind address is a specific one (the #9500 case, where
localhost is not reachable) and pick the agent from the original target
locality, so requests to the machine itself never go through the HTTP proxy.

Seen in support ticket 7763112.

* chore(CHANGELOG.unreleased): entry for #10335

* chore(CHANGELOG.unreleased): clarify localhost targets always bypass the HTTP proxy
2026-09-09 12:00:54 +02:00
..
2026-07-29 15:30:14 +02:00
2026-08-25 16:19:35 +02:00
2026-08-25 16:19:35 +02:00
2026-06-17 10:02:00 +02:00