Skip to content

chore(release): backport #44345, #47670, #47969, #48055, #48103, #48110 to stable/1.104.x - #48076

Merged
yuneng-berri merged 10 commits into
stable/1.104.xfrom
litellm_backport_47670_47969_stable_1_104_x
Oct 23, 2026
Merged

yuneng-berri merged 10 commits into
stable/1.104.xfrom
litellm_backport_47670_47969_stable_1_104_x

Conversation

@yuneng-berri

@yuneng-berri yuneng-berri commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • The line's Python and dashboard locks carry dependency versions that the dependency scan flags
  • stable/1.104.x still trusts the distrusted eMudhra root CAs
  • certifi, botocore, grpcio and the wolfi base image all carry them

How it solves it:

User Flow

Before: a team on the current stable/1.104.x image still verifies outbound TLS against bundles that include the eMudhra roots

  1. They run the proxy image and send POST https://litellm-domain/v1/chat/completions to a provider
  2. The provider certificate is checked against certifi 2026.4.22, botocore 1.43.6 and grpcio 1.78.0, which include emSign ECC Root CA - G3 or AAA Certificate Services
  3. A certificate chaining to those roots is accepted

After: the same request is checked against bundles without those roots

  1. They run the patched image and send the same POST https://litellm-domain/v1/chat/completions
  2. The provider certificate is checked against certifi 2026.10.19, botocore 1.43.117 and grpcio 1.84.1, plus the new wolfi base
  3. A certificate chaining to those roots is rejected

Picks

#47670 (f2118fc767) as ba74025478 and #47969 (52166b51a1) as 97c2c560c1, both with git cherry-pick -x in upstream merge order and with the original authors kept. No bump commit. v1.104.6 is the line's tip version and it is not published anywhere yet (DockerHub and GHCR both 404, no git tag, no release branch), so these picks ride the pending 1.104.6

Adaptation notes

Dependency picks

The second half of this PR backports #48055, which clears the dependency scan findings on main, together with the main commits it needs on this line and the cosign key rotation from #48103. #44345 (0c86d6bfc9) as 285d52bb63, #48055 (8f9894fbd6) as 16287b7133, #48103 (e82a3c6469) as 883deaf08b, all with git cherry-pick -x and the original authors kept

#44345 is main's zod 4 and openai 6 migration, which stable/1.106.x already ships. Without it zod 4 breaks the LiteAdmin tools, because openai 4.104's zodFunction cannot read zod 4 schemas. Files that do not exist on this line were dropped from the pick, build_auto_router_routing_test_request.ts also swaps .default({}) for .prefault({}) because this line's schema differs from main's, and openai moves to 6.49.0 as in #44345

#48055's own pyproject.toml, uv.lock and dashboard lock changes were left out of the pick and redone on the line, because main's locks have moved far from this line's

  • 5758936e8d moves opentelemetry-api, -sdk and -exporter-otlp 1.33.1 -> 1.45.1, opentelemetry-instrumentation-fastapi 0.54b1 -> 0.66b1, logfire 4.6.0 -> 5.2.0. It also moves pypdf 6.19.0 -> 6.21.1, GitPython 3.1.62 -> 3.2.1, graphql-core 3.2.8 -> 3.2.12 and Brotli 1.2.0 -> 1.2.1 inside their ranges, and splits Pillow into 12.3.0 for Python 3.10 and 13.0.0 for 3.11 and newer, like main. Brotli 1.2.1 gets its own exclude-newer-package cutoff because it is still inside the 3-day window. The lock was regenerated with uv 0.11.7, so it stays on revision 3, and nothing else moved
  • bee14f41e9 dashboard deps, 2b157b4151 vscode-extension vite and vitest, c3b9a751b3 the rebuilt bundle. The dashboard moves to next 16.4.1, zod 4.6.6, vite 7.3.7 and vitest 4.1.12, with a top-level zod override so every copy dedupes to one. Only the entries those bumps need were changed in the npm locks
  • 1a026cc38c redoes build(deps): bump mlflow, pypdf and setuptools to clear osv-scan #48110 on the line. It moves mlflow, mlflow-skinny and mlflow-tracing 3.15.0 -> 3.17.2, pypdf 6.21.1 -> 6.21.2 and setuptools 83.0.0 -> 84.1.0 inside their ranges, with exclude-newer-package cutoffs for mlflow and pypdf like main. Nothing else moved, and the line's mlflow tests pass (5 of 5)

Relevant issues

Backports #47670 and #47969. Same fix the 1.106 request in #47904 asks for

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests. This is a dependency and base-image backport, and neither upstream PR added tests. The proof below checks the shipped trust stores directly
  • The handful of test files covering my change pass locally. 1131 passed in the targeted set (Dockerfile apk repo, license check, Bedrock base and SSL verify, http handler, S3 v2, Bedrock chat)
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have received a Greptile Confidence Score of at least 4/5 before requesting a maintainer review (Greptile reviews automatically once the PR is opened; only comment @greptileai to re-request a review after pushing changes)

Delays in PR merge?

If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).

Screenshots / Proof of Fix

ca_check.py reads the CA file each library actually verifies against and looks for the two eMudhra roots

import pathlib, importlib.metadata as md
import certifi, botocore, grpc
bad = ("emSign ECC Root CA - G3", "AAA Certificate Services")
files = {
    "certifi": pathlib.Path(certifi.where()),
    "botocore": pathlib.Path(botocore.__file__).parent / "cacert.pem",
    "grpcio": pathlib.Path(grpc.__file__).parent / "_cython/_credentials/roots.pem",
}
for name, f in files.items():
    text = f.read_text()
    print(f"{name} {md.version(name)}: " + ", ".join(f"{b!r} {'PRESENT' if b in text else 'absent'}" for b in bad))

Before (a742ca3)

  1. Run the check against the versions this line's uv.lock pins at a742ca3693
uv run --no-project --with certifi==2026.4.22 --with botocore==1.43.6 --with grpcio==1.78.0 python ca_check.py
certifi 2026.4.22: 'emSign ECC Root CA - G3' PRESENT, 'AAA Certificate Services' absent
botocore 1.43.6: 'emSign ECC Root CA - G3' absent, 'AAA Certificate Services' PRESENT
grpcio 1.78.0: 'emSign ECC Root CA - G3' PRESENT, 'AAA Certificate Services' PRESENT

After (97c2c56)

  1. Run the check in this branch's own locked environment
uv sync --frozen --all-extras --all-groups && uv run --frozen python ca_check.py
certifi 2026.10.19: 'emSign ECC Root CA - G3' absent, 'AAA Certificate Services' absent
botocore 1.43.117: 'emSign ECC Root CA - G3' absent, 'AAA Certificate Services' absent
grpcio 1.84.1: 'emSign ECC Root CA - G3' absent, 'AAA Certificate Services' absent

Dependency picks

The OTel JSON exporter check is the standalone smoke script from #48055. It exports a real span to a local HTTP collector, with OpenTelemetry 1.45.1 installed

Before (97c2c560c1, this branch before the dependency picks)

uv run --no-sync python otel-json-smoke.py --ref 97c2c560c1 --expect failure
exporter_init=AttributeError: 'OTLPJsonSpanExporter' object has no attribute '_session'
collector_requests=0

After (883deaf08b)

uv run --no-sync python otel-json-smoke.py --ref HEAD --expect success
revision=HEAD
opentelemetry-sdk=1.45.1
export_result=SUCCESS
collector_response=200
content_type=application/json
trace_id_and_span_id_match=true

osv-scanner scan source --config osv-scanner.toml -L uv.lock -L ui/litellm-dashboard/package-lock.json -L vscode-extension/package-lock.json no longer reports GitPython, graphql-core, Brotli, OpenTelemetry, mlflow, pypdf, setuptools, next, zod, sharp, vite or vitest. The dashboard lock is clean. 1627 passed and 0 failed in the targeted OTel set, against 1619 passed and 0 failed before. The full dashboard suite passes 11430 of 11430, and the LiteAdmin agent.test.ts passes 77 of 77, including the strict JSON schema case. The base run had 9 timing failures in the two auto-router integration files that pass when run alone

Type

Bug Fix

Caveats (if any)

Medium

  • The remaining scan findings are the Python 3.10 copy of Pillow 12.3.0, diskcache (no fix released), filelock (fix only in 4.x) and a vscode-extension @azure/msal-node advisory published on 2026-10-23 (fix only in 7.x)
  • The dashboard bundle under litellm/proxy/_experimental/out/ is rebuilt so the shipped UI carries the new packages, which is most of the file count
  • The OpenTelemetry and logfire pins in pyproject.toml changed, so this needs two reviewers
  • The playground was not exercised against a live proxy after the openai 4 -> 6 move. The evidence is the full vitest suite and an unchanged tsc error set
  • Docker images were not built locally
    • The wolfi digest and apk lists are identical to main, where they build
  • No completed LLM call shown, the Bedrock account is pending AWS verification
    • Each line's proxy booted on its own venv and reached Bedrock over TLS with the new bundles
  • pyproject.toml changes (certifi floor, boto3 floor, grpcio pin) need two reviewers

Low

  • Carries upstream's exclude-newer-package overrides and their TODOs as they are on main

Final Attestation

  • The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR

ryan-crabbe-berri and others added 2 commits October 23, 2026 11:58
Update certifi, Rust trust roots, and the Docker CA bundle to remove emSign ECC Root CA - G3

Require the fixed certifi release in litellm-core and retain libssl3 in Docker runtimes for Prisma compatibility

Co-authored-by: shin-berri <shin-laptop@berri.ai>
(cherry picked from commit f2118fc)
…atibility (#47969)

* fix(security): bump grpcio and boto3 so their bundled CA files drop the compromised eMudhra roots

grpc ignores SSL_CERT_FILE and verifies every channel against its own bundled roots.pem. In 1.78.0 that file still trusts emSign ECC Root CA - G3 and AAA Certificate Services, so Vertex AI, Google KMS, Chirp STT and OTLP gRPC exporters (Arize) accept all 14 advisory chains. 1.84.1 is the first release whose roots.pem drops both roots.

botocore uses certifi when it is installed and falls back to its bundled cacert.pem otherwise. Through 1.43.116 that file still trusts AAA Certificate Services. Requiring boto3 1.43.117 pulls in botocore 1.43.117, the first release whose cacert.pem rejects all 14 advisory chains, so the fallback stays safe if certifi is ever absent

* fix(docker): provide OpenSSL 3 when generating Prisma engines

(cherry picked from commit 52166b5)
Ishaan and others added 7 commits October 23, 2026 15:17
* fix(deps): upgrade Python dependencies

* fix(deps): lock patched Python dependency versions

* fix(otel): preserve JSON export with the updated SDK

* test(otel): cover JSON export with the updated SDK

* test(otel): update SDK log records and worker discovery

* fix(ui): align Lens peer dependency with patched Next.js

* fix(otel): hand the AgentOps exporter a session it owns for the JWT header

OpenTelemetry 1.45 moved the OTLP HTTP exporter's requests.Session behind a
transport, so writing the minted JWT to the exporter's private _session raised,
was swallowed, and every AgentOps batch went out unauthenticated. The exporter
now creates the session, passes it through the public session= argument and
sets the Authorization header on it

The tests now drive a real export, serving the token endpoint with respx and
capturing the OTLP POST with requests_mock, instead of reading SDK internals

* fix(otel): skip FastAPI instrumentation once the app has started

opentelemetry-instrumentation-fastapi 0.66b1 wraps build_middleware_stack instead
of calling add_middleware, so instrumenting an app whose middleware stack is
already built no longer raises. The call silently did nothing while we still
registered the global response propagator. Check the built stack up front and
skip both, which is what the existing test expects

* test(otel): assert exported requests and span flags instead of SDK internals

OpenTelemetry 1.45 dropped the exporter's private _headers and sets the W3C
random-trace-id flag on new traces, so traceresponse ends in -03. The Langtrace
and Langfuse tests now export through requests_mock and check the URL and headers
the collector receives, and the traceresponse tests expect the server span's own
trace flags

* fix(deps): bump dashboard zod to 4.6.6 and make the vendored Lens use it

zod 4.6.5 is flagged by the dependency scan and blocks osv-scan on every PR. A
root bump alone leaves the vendored Lens tarball, which pins zod 4.6.5 exactly,
on its own nested copy, so a top-level zod override points every consumer at the
root version and the lock carries a single zod 4.6.6

* test(ui): stub the tag summary fetch the client panel retry refreshes

Retrying the model breakdown refetches /tag/summary, which this integration test
left on the real network. When that request failed before the assertion, the
panel switched to its summary error and unmounted the model row, so the test
passed or failed by timing

* fix(deps): drop the duplicated Lens override from the dashboard package.json

* style(ui): format the client panel fetch stub

Backport notes for stable 1.104.x. The dependency files (pyproject.toml, uv.lock, the dashboard package.json and package-lock.json) were left out of this pick and are re-derived on the line in the following commits

ClientUsagePanel.integration.test.tsx does not exist on this line, so its stub hunk is dropped
test_otel_v2_mount.py keeps the line's version because the traceresponse tests the squash edits are not on this line
test_litellm_logging.py keeps the line's version because the Langtrace export test the squash edits is not on this line
test_opentelemetry.py keeps the line's trace import without SpanLimits, which only the newer tests on main use

---------

Co-authored-by: Yuneng Jiang <yuneng@berri.ai>
(cherry picked from commit 8f9894f)
…ore, Brotli and Pillow

Moves the OpenTelemetry API, SDK and OTLP exporter pins to 1.45.1 and the FastAPI instrumentation to 0.66b1 in every group, logfire to 5.2.0, and splits Pillow so Python 3.11 and newer get 13.0.0 while 3.10 stays on 12.3.0, matching main

The lock is re-derived on this line with uv 0.11.7. GitPython goes to 3.2.1, graphql-core to 3.2.12, Brotli to 1.2.1 and pypdf to 6.21.1 inside their existing ranges, and the OpenTelemetry 1.45 line pulls in opentelemetry-exporter-http-transport and opentelemetry-exporter-otlp-common. No other package moves

Brotli 1.2.1 is still inside the 3-day release window, so it gets its own exclude-newer-package cutoff
Moves next to 16.4.1, zod to 4.6.6, vite to 7.3.7, vitest and @vitest/ui to 4.1.12, and raises the sharp override to ^0.35.5, matching main. @vitest/coverage-v8 goes to 4.1.12 with them because it peers on the exact vitest version

A top-level zod override points every nested consumer at the root copy, so the lock carries a single zod 4.6.6 instead of keeping knip's nested 4.4.3

npm install also refreshed rollup, chai, obug, std-env and tinyrainbow to newer releases although the bumped packages accept the locked ones. Those entries are kept at their previous versions, the same versions main resolves, so the lock only moves the packages above and their platform builds
* refactor(dashboard): migrate to zod 4 and openai 6

Bump the dashboard to real zod 4.6.5 and openai 6.49.0 so every module
imports from bare "zod" instead of "zod/v4". Ports the ten files that
still used the zod 3 API (error params, record, passthrough, strict,
email/date validators, union discriminator codes) and adapts the
LiteAdmin tool schemas and form plumbing where openai 6 and zod 4
changed behaviour.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* style(dashboard): prettier format zod 4 schema files

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(dashboard): restore system one missing state message under zod 4

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

Backport notes for stable 1.104.x. package.json and package-lock.json were restored from the line and only openai moves to 6.49.0, since zod is already on 4.6.6 here. The lock change is openai plus the 21 packages only openai 4 needed

agent_identity.ts and the systemOneUI schemas.ts and validatePayload.test.ts do not exist on this line, so their hunks are dropped
build_auto_router_routing_test_request.ts keeps the line's jev-only schema with the record key and loose() from this change, and its default({}) becomes prefault({}) so the saved JEV config defaults are still parsed in under zod 4
jev_classifier_config.ts keeps the line's plain object schema, because the provider transform and refine this change edits are not on this line

---------

Co-authored-by: Yujong Lee <yujong@berri.ai>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 0c86d6b)
Raises the vitest floor to ^4.1.12 and moves the locked vite to 8.3.4, matching main. The lock only moves the vitest packages, vite, and what vite 8.3.4 requires, which is rolldown 1.2.14 with its bindings and @oxc-project/types, postcss 8.5.30 and nanoid 3.3.20
@yuneng-berri yuneng-berri changed the title chore(release): backport #47670, #47969 to stable/1.104.x chore(release): backport #44345, #47670, #47969, #48055, #48103 to stable/1.104.x Oct 23, 2026
Redoes #48110 on this line. The lock moves mlflow, mlflow-skinny and mlflow-tracing to 3.17.2, pypdf to 6.21.2 and setuptools to 84.1.0 inside their existing ranges. mlflow 3.17.2 and pypdf 6.21.2 are still inside the 3-day exclude-newer window, so they get their own exclude-newer-package cutoffs, matching main. The lock was regenerated with uv 0.11.7
@yuneng-berri yuneng-berri changed the title chore(release): backport #44345, #47670, #47969, #48055, #48103 to stable/1.104.x chore(release): backport #44345, #47670, #47969, #48055, #48103, #48110 to stable/1.104.x Oct 23, 2026
@yuneng-berri
yuneng-berri merged commit 4a8940a into stable/1.104.x Oct 23, 2026
10 of 11 checks passed
@yuneng-berri
yuneng-berri deleted the litellm_backport_47670_47969_stable_1_104_x branch October 23, 2026 23:15

This branch was successfully deployed

No deployments
e2e-changed — 1a026cc3 Deployed Oct 23, 2026 by yuneng-berri via oauth #6039
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants