Trust · AI desk · stabiele SDK-release · makersbewijs
Who routes your AI traffic? Anthropic SDK 2.14 makes code override hidden proxy settings again
TL;DRAnthropic Python SDK 2.14.0 fixes a routing bug: environment variables could override an explicit proxy or trust_env=False. That affects who may sit on the path of AI requests, but the maker reports no leak or attack.
You and AI. Our lens: what changes for you, for us and for whoever makes the decisions?
Anthropic released version 2.14.0 of its official Python SDK on 24 November. Its most concrete change is not a smarter model but the road to the model. In earlier versions, the HTTP_PROXY, HTTPS_PROXY, ALL_PROXY and NO_PROXY environment variables could determine the network route even when a developer explicitly passed proxy= in code or used trust_env=False to say that environment settings should not be trusted. In 2.14.0, that deliberate code choice takes priority again.
The difference is technically small and operationally important. A proxy is an intermediary for network traffic. Organisations use proxies for access control, logging, filtering and egress policy, among other things. A developer may also deliberately send traffic directly or through a particular gateway. If a variable on the machine or in a container silently changes that choice, the request may pass through an administrator, logging layer or security product that was not part of the application configuration.
The fix handles two decisions separately. When proxy= is supplied to DefaultHttpxClient or DefaultAsyncHttpxClient, all requests now use that proxy and proxy environment variables are not read for routing. When trust_env=False is used, the clients ignore those variables. Without either explicit choice, normal environment-driven behaviour remains available. The commit changes the same logic in the synchronous and asynchronous clients.
The release also contains an intentional, visible behaviour change. A host listed in NO_PROXY could previously be reached directly even when proxy= had been set. After the upgrade, that host instead travels through the explicitly selected proxy. Anyone who wants a particular host outside that route must configure an explicit mount, for example an appropriate all://host entry set to None. An upgrade without retesting exceptions can therefore produce a working but different network path.
Anthropic added nine test combinations for both client types. They cover a default HTTPS_PROXY, a NO_PROXY exception, trust_env set to True and False, an explicit proxy against HTTPS_PROXY, ALL_PROXY and NO_PROXY, and a mount that disables proxy use. The tests inspect which transport proxy the client selected. That is useful maker evidence for the corrected decision logic, but not a measurement of live internet connections, proxy logging or data protection.
For You and AI, the central question is therefore not only which model produces an answer but who controls the path to that model. Application code, container configuration and the proxy operator may each hold part of that power. The SDK fix makes the first choice more predictable. It does not say whether a chosen proxy stores content, who can access its logs, which region is used or how a later router or model provider handles the request.
A safe check uses two clean local environments with versions 2.13 and 2.14, a local mock destination, a dummy API key and a local logging proxy. Test four cases: only an environment proxy, proxy= alongside NO_PROXY, trust_env=False and an explicit exclusion mount. Measure only direct versus proxied routing, status and optionally latency. Stop if any external connection occurs, content or credentials enter a log, or production configuration is required.
The release is marked stable on GitHub. It also adds SDK support for Google-managed data controls and compliance-review objects. Those are separate management surfaces, not proof that every organisation can use them or that controls are active. This article therefore stays with the documented proxy fix: one small execution boundary that teams can verify without turning it into a general safety certificate.
For you and us
A developer may believe the application uses a chosen network route while settings on a laptop, container or server send the request through another intermediary. The fix makes that choice more explicit; it does not make the selected proxy trustworthy by itself.
Your next step
Test 2.14.0 locally with a dummy proxy and no real prompts or keys. Check proxy=, trust_env=False, NO_PROXY and an explicit exclusion mount separately, recording only which route is actually used.
Good to know
Anthropic labels this a bug fix, not a CVE. The commit contains targeted regression tests, but no demonstrated attack, data leak, user harm, end-to-end network test or independent audit.
Original sources
What do you think?
A reader average appears after three ratings.