{"version":"2.1.331","anchor":"gateway-idp-connect-by-hostname-through-proxy-new-env-var","canonical_anchor":"gateway-idp-connect-by-hostname-through-proxy-new-env-var","heading":"Gateway can send sign-in provider requests through a proxy by hostname","tier":"use","area":"Gateway","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/gateway-idp-connect-by-hostname-through-proxy-new-env-var","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Gateway can send sign-in provider requests through a proxy by hostname\n\nSetting `CLAUDE_GATEWAY_IDP_CONNECT_BY_HOSTNAME` makes the gateway pass sign-in provider hostnames to your forward proxy unresolved and refuse plain `http:\/\/` addresses\n\n**What**\n\nThe 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.\n\n- 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.\n\n- 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.\n\n- With the variable off, an `http:\/\/` IdP address behind a proxy produces a warning instead.\n\n- 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.\n\nBefore this, the proxy path only checked for loopback and cloud metadata addresses. It had no hostname mode.\n\n**Why**\n\nGateway 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.\n\n- Area: Gateway\n- Names: `CLAUDE_GATEWAY_IDP_CONNECT_BY_HOSTNAME`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 4\/5\n- Scope: org\n- Heads-up: no"}