Skip to content

fix(k8s): bump the LiteLLM gateway to v1.103.10 - #4374

Merged
dan-petty merged 2 commits into
mainfrom
fix/4370-litellm-gateway-1-103-10
Nov 10, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/4370-litellm-gateway-1-103-10

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The gateway image ghcr.io/berriai/litellm:v1.103.0 holds two critical advisories (GHSA-7hp6-4w63-5g45, fixed in 1.103.1; GHSA-w4c7-34wj-hqm8, fixed in 1.103.10), and the gateway is reachable from outside the cluster. Release v1.103.10 is the newest patch of the same line and holds both fixes. A new test fails when the pin falls below the fixed release of its line. The cost-map text in config.yaml and k8s/README.md follows the map of the new release.

Closes #4370

Change: openspec/changes/archive/2026-11-10-4370-bump-the-litellm-gateway-to-v1/

The gateway image v1.103.0 holds two critical advisories, and the
gateway is reachable from outside the cluster. Release v1.103.10 is
the newest patch of the same line and holds both fixes. A test fails
when the pin falls below the fixed release of its line.

Closes #4370
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 10, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Evidence

Read on 2026-11-10.

  • GHSA-7hp6-4w63-5g45 (critical, CVSS 9.9, published 2026-09-30). An internal user gets a forged admin token and runs commands through the MCP stdio endpoint. The range >= 1.103.0, < 1.103.1 holds v1.103.0. Fixed in 1.103.1.
  • GHSA-w4c7-34wj-hqm8 (critical, CVSS 10.0, published 2026-10-27). An unauthenticated file read leaks the master key. The advisory says that only a proxy with an Enterprise licence is affected. The gateway Deployment has no licence variable (names read from the repository and from the live Deployment), so it is probably not affected. The range < 1.103.10 names our line. Fixed in 1.103.10.
  • Source: https://api.github.com/repos/BerriAI/litellm/security-advisories. The global endpoint /advisories/GHSA-w4c7-34wj-hqm8 returns "Not Found".
  • Releases: v1.103.10 was published 2026-10-27 19:55 UTC (14 days old). It is the newest of the 1.103 line. The latest release is v1.108.4 (2026-11-09). No open pull request or issue for a LiteLLM bump existed (chore(k8s): update litellm to v1.103.0 #732 and chore(k8s): update litellm to v1.103.0 #733 are closed).
  • Digest of ghcr.io/berriai/litellm:v1.103.10: sha256:99ad434a180d21b9c4500cb22a31c8c66e5e041a651df8819adee5c957521ea6 (image index; linux/amd64 manifest sha256:b43fb90381b033f15f47ff94b8eb6977a7697d889853f30fe23cb562183e4da6). Source: the registry API of ghcr.io (HEAD /v2/berriai/litellm/manifests/v1.103.10, header docker-content-digest, anonymous pull token). The same read for v1.103.0 gives sha256:bd089afd...5de7, which is the imageID of the running pod, so the method reads the real digest. The manifests pin a tag and no digest, so this change pins the tag. skopeo, crane and podman are not installed here.

Configuration check

I unpacked the wheels of litellm 1.103.0 and 1.103.10 into new scratch directories and compared them. I also installed 1.103.10 in a scratch virtual environment and loaded k8s/llm/gateway/config.yaml with python -I: Router(model_list=..., **router_settings) builds all 12 groups with routing_groups and fallbacks, and PassThroughGenericEndpoint accepts the route /v1/systemone of #4300. The class and the type file of the pass-through route are identical in both versions. Every key of litellm_settings and general_settings that the file uses still occurs in the source. litellm/types/integrations/prometheus.py is identical, so the metric names and labels do not change. A request was not sent.

Changes between 1.103.0 and 1.103.10 (release notes and source diff)

  • 1.103.1: the salt-key fix. Bearer tokens are sealed with an authenticated prefix.
  • 1.103.3: the migration check is on by default. This Deployment already sets ENFORCE_PRISMA_MIGRATION_CHECK.
  • 1.103.7: backports of batch cost and pricing fixes. The project marks one as breaking (fix(batches)!). The gateway does not use batches.
  • 1.103.8: the image signing key changes, and one root certificate leaves the bundle.
  • 1.103.10: a rejected request keeps fewer fields in the failure log.
  • litellm-proxy-extras goes from 0.4.100 to 0.4.100.post1. It adds no migration. It changes the SQL of two applied migrations to SELECT 1;.
  • The cost map of 1.103.10 lists claude-sonnet-5-5 and claude-haiku-5-5 (v1.103.0 did not) with supports_sampling_params: false, and marks gemini-3.8-flash the same way. The Claude groups set their own prices and drop the sampling parameters themselves.
  • If a later line is needed: v1.104.8, v1.105.6 and v1.106.5 also hold the second fix. This change uses none of them.

What happens on merge

  1. Argo CD syncs the application llm (automated sync with prune and self-heal). The Deployment llm-gateway gets the new image, and the ConfigMap hash changes (the comment in config.yaml changed), so the pod is replaced.
  2. The Deployment has one replica and the default RollingUpdate strategy. The new pod starts first (surge 1, unavailable 0). The old pod serves until the new pod is ready, so I expect no gap. The new pod pulls an image of about 1 GB. The last start on this cluster took 30 s from schedule to ready with a cached image. The startup probe allows 10 minutes.
  3. The old pod stops after the new pod is ready. A call in progress on the old pod (a long stream) can be cut when it stops (the default grace period is 30 s), and the client retries it.
  4. If the new pod fails to start, the old pod keeps serving, Argo shows the application as degraded, and a revert of this pull request restores the tag. The change adds no migration, so v1.103.0 can run on the same database.

Check after the merge

kubectl -n llm rollout status deploy/llm-gateway
kubectl -n llm get deploy llm-gateway -o jsonpath='{.spec.template.spec.containers[0].image}'
kubectl -n llm logs deploy/llm-gateway --tail=100
uv run devops ai gateway status
uv run devops ai ask-jev noul "Is this a docs-only change?" --context "Fix a typo in README.md" --json

Also send one short call through the gateway to deepseek-v4.1-flash-1017, then one to claude-sonnet-5-5 and one to gemini-3.8-flash if their keys are stored, because the cost map of the new release changed their entries. The logs must show no "migration" error.

Not verified

  • The checksum of the two changed migrations: I did not verify that prisma migrate deploy accepts an applied migration whose SQL changed. A failed check ends the start-up (ENFORCE_PRISMA_MIGRATION_CHECK), and the old pod stays.
  • A live request on 1.103.10: nothing was applied to the cluster, so the behaviour of the Claude and Gemini groups with the new cost map is read from the source only.
  • The local devops ci run: the queue was long, so the GitHub checks of this pull request are the proof.

@dan-petty
dan-petty marked this pull request as ready for review November 10, 2026 14:13
@dan-petty
dan-petty merged commit 7d86a2b into main Nov 10, 2026
25 checks passed
@dan-petty
dan-petty deleted the fix/4370-litellm-gateway-1-103-10 branch November 10, 2026 14:13
@dan-petty

Copy link
Copy Markdown
Owner Author

Check after the merge

Read only, 2026-11-10 14:20 UTC, after the owner merged this pull request.

  • The Deployment llm-gateway runs ghcr.io/berriai/litellm:v1.103.10. The imageID of the new pod is sha256:99ad434a180d21b9c4500cb22a31c8c66e5e041a651df8819adee5c957521ea6, equal to the digest in the comment above.
  • The pod is ready (1 of 1) and the application llm is Synced at this commit. The pod log shows prisma migrate deploy: "184 migrations found", "No pending migrations to apply", then "Application startup complete". So Prisma accepted the changed SQL of the two applied migrations. This closes the open point of the comment above.
  • uv run devops ai gateway status: healthy, circuit breaker off, all four virtual routes healthy.
  • uv run devops ai ask-jev noul "Is this a docs-only change?" --context "Fix a typo in README.md" --json answered yes (0.94) through the pass-through route /v1/systemone.
  • Not checked: a call to claude-sonnet-5-5 and one to gemini-3.8-flash (they bill a hosted provider), so the effect of the new cost map on those two groups is still read from the source only.

dan-petty pushed a commit that referenced this pull request Nov 10, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.107.2](v0.107.1...v0.107.2)
(2026-11-10)


### Bug Fixes

* **k8s:** bump the LiteLLM gateway to v1.103.10
([#4374](#4374))
([7d86a2b](7d86a2b))
* **roadmap:** check the test form that a task names
([#4353](#4353))
([d25bc49](d25bc49))
* **roadmap:** refuse a behavior group that omits a test it changes
([#4356](#4356))
([dd1e285](dd1e285))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(k8s): bump the LiteLLM gateway to v1.103.10 for advisories

1 participant