8 views
-/https://github.com/berriai/litellm/issues/32202
GitHub Β· issue

#32202 [Bug]: `pass_through_endpoints` + `forward_headers: true` contradicts the header-forwarding docs β€” forwards the proxy `Authorization` upstream (key leak) and does NOT strip the `x-pass-` prefix

  • State: open
  • Author: @jt-helsinki
  • Labels: bug, proxy, llm translation

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

The header-forwarding docs (https://docs.litellm.ai/docs/proxy/forward_client_headers) make two guarantees:

1. > "The proxy's `Authorization` header (used for proxy authentication) is **never** forwarded to LLM providers, even with this setting enabled." 2. > "Headers prefixed with `x-pass-` are always forwarded with the prefix stripped, regardless of settings."

Neither holds for a generic `pass_through_endpoints` entry with `forward_headers: true`. On that route LiteLLM performs a **raw, verbatim header relay**:

- The proxy `Authorization` header β€” which carries the **LiteLLM master/virtual key** β€” is forwarded **verbatim to the upstream provider** (contradicts guarantee #1, and leaks the proxy credential to the third-party LLM API). - An `x-pass-authorization` header arrives at the upstream **unchanged** (`x-pass-authorization`), i.e. the prefix is **not** stripped and it is not rewritten to `authorization` (contradicts guarantee #2).

The `x-pass-` prefix-stripping and the "Authorization is never forwarded" rule appear to apply only to th…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (2 events)
#0 of 0 Β· 31d18h50m9s ago β€” entered Β· #import:https:::github.com:berriai:litellm post #2044
32202 is harder because it involves security-sensitive header filtering, route-specific forwarding behavior, backward-compatibility concerns, and regression testing across proxy paths. 23980 is narrower model/provider-resolution logic within vector-store creation.
#0 of 0 Β· 31d17h57m42s ago β€” current Β· #import:https:::github.com:berriai:litellm post #2908
The right issue is harder because it involves shared proxy authentication and header-routing behavior, security-sensitive filtering, endpoint-specific compatibility, and regression risk across forwarding configurations. The left issue is comparatively localized to request validation or message transformation for one API shape.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search