Gateway can send sign-in provider requests through a proxy by hostname
Setting CLAUDE_GATEWAY_IDP_CONNECT_BY_HOSTNAME makes the gateway pass sign-in provider hostnames to your forward proxy unresolved and refuse plain http:// addresses
Use it nowNotableNo documentation foundNew Features
What probably matters to youSection of the release
What
The gateway signs users in through an identity provider (IdP), the outside service that checks who someone is, using a standard called OIDC. A new environment variable, CLAUDE_GATEWAY_IDP_CONNECT_BY_HOSTNAME, changes how those sign-in requests travel through a forward proxy (a server that outgoing traffic passes through). An environment variable is a setting you put in your shell before starting the program.
With the variable on, an IdP hostname that NO_PROXY does not match is handed to the proxy as a name. The gateway does not look up its address first.
In that mode, an IdP address starting with http:// that would go through the proxy is refused with the error ECONNREFUSED_SSRF. SSRF is a kind of attack that tricks a server into contacting places it should not reach.
With the variable off, an http:// IdP address behind a proxy produces a warning instead.
If the variable is set but oidc.use_proxy: true and HTTPS_PROXY are not both in place, the gateway logs that it has no effect and sends IdP requests directly.
Before this, the proxy path only checked for loopback and cloud metadata addresses. It had no hostname mode.
Why
Gateway operators behind a forward proxy get a new way to decide how sign-in traffic leaves their network: the proxy resolves the hostname, and the gateway refuses unencrypted IdP addresses.