Follow Discord
Sweep 23 Nov 2026 · 19:13Z Build v2.1.331 548 read Stable v2.1.323 Latest v2.1.330 Next v2.1.331 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.331 ·

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 now Notable No documentation found New Features
JSON All of v2.1.331
Use it nowTier: how much it should matter to you
5Useful: my rating, 1 to 5
4Signal: worth watching, 1 to 5
GatewayArea: what it touches
New FeaturesKind: in v2.1.331,
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.

Read from

See this entry in the whole of v2.1.331 →

Feedback