Scoping WAF/CDN firewall exceptions for the LangSmith LLM Auth Proxy
Last updated: December 4, 2026
Overview
If you run the LangSmith LLM Auth Proxy behind a WAF or CDN, you need firewall rules that let proxied LLM traffic through without opening the proxy up broadly. This covers what identifier to scope the allowlist on, how to size a rate limit, and whether saving a model configuration is a reliable connectivity check.
Don't allowlist by User-Agent
LangSmith does not send a LangSmith-specific User-Agent on proxied LLM calls. Each feature (Playground, online evaluators, Fleet, Chat, Insights) calls the upstream model provider using that provider's own client library, so the User-Agent string reflects whichever client library and version is in use at call time (for example strings like OpenAI/Python, AsyncAnthropic/Python, python-httpx, or aiohttp). This string differs across features and can change whenever a client library is upgraded, so it is not a stable value to key a firewall rule on. A WAF rule that allowlists specific User-Agent strings will eventually block legitimate traffic with a 403 once a library version changes or a new feature path is used.
Scope exceptions by route, egress IPs, and the signed JWT
Scope your firewall exception to the auth proxy hostname and model routes, combined with LangSmith's published egress IP ranges. Keep JWT validation enforced at the proxy itself: header presence alone is not authentication. Every proxied call carries a signed JWT in the x-langsmith-llm-auth request header, and the proxy validates this JWT already. That JWT, not the User-Agent, is the durable identifier for proxied traffic.
Sizing a rate limit
There is no fixed, published requests-per-second figure for the auth proxy to size a rate limit against. Experiment runs and online evaluators dispatch work in parallel batches, so traffic through the proxy is bursty and scales with dataset size, number of concurrent experiments or evaluators, model latency, and retries.
Measure your own peak instead of guessing a number: run a representative experiment and a sampled online evaluator run, measure the peak request count observed by your WAF/CDN over the same window you plan to use for the rate limit (including any overlapping jobs and retries), and set the limit with headroom above that observed peak.
Saving a model configuration doesn't test the proxy
Saving (creating or updating) a model configuration only persists its settings. It does not invoke the model or send any request through the auth proxy. To verify connectivity through the proxy, run a Playground prompt or an evaluator test against the model configuration instead of relying on the save action.