Repository navigation
Description
Problem
The gateway image was bumped from v1.103.0 to v1.103.10 (PR #4374) to fix two critical advisories (GHSA-7hp6-4w63-5g45, GHSA-w4c7-34wj-hqm8). The newest release is v1.108.4 (2026-11-09), five minors ahead. The 1.103 line may get no more fixes, and later releases add fixes for MCP, cost maps (for example claude-sonnet-5-5 entries) and other parts that the project uses.
What to find out
- Whether the 1.103 line still gets security fixes, and which advisories apply to later lines.
- The breaking changes and migration notes between v1.103.10 and the newest stable release; whether
litellm-proxy-extrasadds migrations; whetherk8s/llm/gateway/config.yamlstill loads (12 model groups, fallbacks, and the Jev pass-through for/v1/systemone). Read the wheel source in a new empty scratch directory (python -I), and load the config withRouteras the earlier bump did. - Whether a hosted-group call (
claude-sonnet-5-5,gemini-3.8-flash, DeepSeek) still works after the upgrade. A short live call to each hosted group is a person's or an agent's step after the merge. - The Renovate or release policy for this image (the digest pin; no minimum release age, owner direction of 2026-11-11).
Done when
A written plan with the target version, the risk list, the test steps and the rollback is in this issue. The bump itself is a separate fix issue.
Related: #4370 and PR #4374 (the security bump), #4289, #4296.
Proposed design
Problem statement
The gateway image runs LiteLLM v1.103.10, five minors behind the newest release. The v1.103 line may get no more security fixes, and later releases fix MCP and cost-map entries that the project uses. The repository holds no plan for the upgrade, so the bump has no target version, risk list, test steps or rollback.
Acceptance criteria
Requirement: Target version
The upgrade plan SHALL name one target LiteLLM version newer than v1.103.10 and the date of its release.
Scenario: Plan names a released target
- WHEN A test reads the plan document
- THEN It finds one version tag newer than v1.103.10 with a release date.
Requirement: Breaking changes and migrations
The plan SHALL state the breaking changes, the migration notes and the litellm-proxy-extras migrations between v1.103.10 and the target version.
Scenario: Each intervening release has an entry
- WHEN A test reads the plan and counts the release sections between v1.103.10 and the target
- THEN Each minor release in that range has one section that states its breaking changes or states that it has none.
Requirement: Config load result
The plan SHALL record the result of loading k8s/llm/gateway/config.yaml with Router of the target version in a new empty directory.
Scenario: Plan records the load result
- WHEN A test reads the config-load section of the plan
- THEN It finds the command, the target version, 12 model groups, 6 fallback rules, the
/v1/systemonepath and a pass or fail result.
Requirement: Hosted group test steps
The plan SHALL give one live test step and the required key for each hosted model group.
Scenario: Each hosted group has a step
- WHEN A test reads the test-step section of the plan
- THEN Each of
claude-sonnet-5-5,claude-haiku-5-5,gemini-3.8-flashanddeepseek-v4.1-flash-1017has one step and the name of its environment key.
Requirement: Rollback
The plan SHALL state the rollback to v1.103.10 and the command that applies it.
Scenario: Rollback restores the previous image
- WHEN A test reads the rollback section of the plan
- THEN It finds the version v1.103.10, the file
k8s/llm/gateway/deployment.yamland the command that restores the image.
Requirement: Security support and advisories
The plan SHALL state whether the v1.103 line still receives security fixes and name each advisory that affects a later line.
Scenario: Support statement has a source
- WHEN A test reads the support section of the plan
- THEN It finds a supported or unsupported statement with the URL of its source.
Requirement: Update policy
The plan SHALL state the update policy of the gateway image and its digest pin, and whether the target version is the newest release that fixes the known security and bug issues and that the config and the clients support.
Scenario: Version rule is checked
- WHEN A test reads the policy section of the plan
- THEN It finds the version rule and a statement that the target version meets or fails it.
Existing Tool Considered
No alternatives check has run. Renovate covers the version detection and the digest pin of the gateway image. It lacks the breaking-change analysis, the offline Router config load and the hosted-group smoke steps, so the plan states those by hand. This item builds no code: it adds one document, k8s/llm/gateway/UPGRADE.md.
Key questions
- Where does the upgrade plan live so that one pull request delivers it?: In
k8s/llm/gateway/UPGRADE.md, next to the config and the deployment that it plans. The pull request that adds it closes the issue. (best practice) [sources: CONTEXT.md, k8s/llm/gateway/config.yaml, k8s/llm/gateway/deployment.yaml]- Chosen:
k8s/llm/gateway/UPGRADE.md. It sits with the files that it plans, and one pull request adds it and closes the issue. - Rejected:
docs/litellm-upgrade.md. It puts a k8s plan away from the manifests and needs a new directory. - Rejected: The issue body only. An item is delivered by one pull request, and a comment on the issue delivers no change.
- Chosen:
- Which target version does the plan name?: The newest stable release at the time of the bump, which the issue names as v1.108.4, if the config loads and the tests pass with it. No minimum release age applies. Otherwise the plan names the newest release that passes and states the cause. (best practice) [sources: k8s/llm/gateway/deployment.yaml]
- Chosen: The newest stable release. It carries the most fixes, and the config load and the tests decide when the bump can land.
- Rejected: The next minor only. It leaves four minors of fixes, cost-map entries and MCP fixes behind.
- Which procedure loads the config under the target version?: A new empty directory,
python -I, a virtual environment, the target wheel oflitellm[proxy], and aRouterbuilt from the model list and the router settings ofk8s/llm/gateway/config.yaml. (best practice) [sources: k8s/llm/gateway/config.yaml, k8s/llm/gateway/deployment.yaml]- Chosen: A scratch directory with the target wheel and
Router. It reads the wheel source and loads the real config, as the earlier bump did. - Rejected: A new test module in CI. CI must test the version that the cluster runs, and the cluster still runs v1.103.10.
- Chosen: A scratch directory with the target wheel and
- Which model groups and fallback rules must the config-load check assert?: 12 model groups, 6 fallback rules and the
/v1/systemonepass-through. [sources: k8s/llm/gateway/config.yaml] - Does the gateway run database migrations at start-up, which the target version must keep working on a read-only root file system?: Yes. The gateway migrates on a read-only root file system, and a failed migration ends the start-up. The plan checks the
litellm-proxy-extrasmigrations for this. [sources: openspec/specs/llm-gateway-database/spec.md, k8s/llm/gateway/deployment.yaml] - Which existing test fails when the Jev pass-through path changes?:
tests/ai/test_jev_gateway_route.pyfails when the pass-through path and the client path differ, so the plan runs it as a step. [sources: k8s/llm/gateway/config.yaml, tests/ai/test_jev_gateway_route.py]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Alternatives check of 2026-11-18: not-applicable.
Class: chore, no search.
Tool: none found.
Activity
dan-petty commentedon Nov 10, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
choreprefix of the title gives the type.(k8s)scope of the title gives the scope.The 1.103 line may stop receiving fixes, but the current version is patched and functional, so this is important but not urgent.A written plan reduces risk for the next gateway upgrade and keeps the project current with security and feature fixes.Requires researching breaking changes, loading config in a scratch environment, checking hosted-group compatibility, and writing a plan document.Both concern the LiteLLM gateway version, but #4370 delivered the v1.103.10 security bump while this candidate plans the next upgrade beyond that line.devops-cli-service commentedon Nov 10, 2026
Status set to Ready at efe3884 (see proposed design in issue body).
Moved to new items: #4428.
devops-cli-service commentedon Nov 11, 2026
Alternatives check: not-applicable
Class: chore. The check makes no search and no model call for an item of this class.
Tool: none found
Checked on 2026-11-11. A person decides what this means for the item. The check changes no label and closes no issue.
dan-petty commentedon Nov 11, 2026
Owner direction of 2026-11-11:
New rule: no minimum release age for dependencies, images, charts or tools. Pin the newest release that fixes the known security and bug issues and that the surrounding tools support (the tests pass).
Body changes: the plan states the digest pin and whether the target is the newest release that fixes the known issues and that the config and the clients support. The two-week age rule is removed from item 4, the update-policy requirement, its scenario, the tool note and the target-version answer.
.github/renovate.jsonsets no minimum release age for the gateway image, so the tool note no longer says that Renovate applies one.devops-cli-service commentedon Nov 22, 2026
Plan state: branch
chore/4406-plan-the-litellm-upgrade-beyond-1, draft pull request #6776. The pull request plans the item and closes no issue. The stage job and the step fix-plan edit this comment, and a comment of each run tells what the run did.The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:
A model review of the plan found these points. They stop no draft, and a person judges them:
ignores_existing_codeat tasks (3): Group 3 writes a live call and the key variable for each hosted group intoUPGRADE.md, butk8s/README.mdalready documents them in "Smoke check after a gateway upgrade": one call for four of the five groups, the structured call, and a table of each group's provider key. The plan should link that section and add only the missingdeepseek-v4.1-flashcall, instead of duplicating it. Evidence: "|claude-sonnet-5-5|ANTHROPIC_API_KEY|"criterion_droppedat issue (The plan SHALL state the breaking changes, the migration notes and thelitellm-proxy-extrasmigrations between v1.103.10 and the target version.): No group states thelitellm-proxy-extrasmigrations between the pinned release and the target. Group 1 gives one section per release with its breaking changes only, and group 3's database entry is the gateway's start-up migration on the read-only file system, not the migrations of thelitellm-proxy-extraspackage. Evidence: "The plan SHALL state the breaking changes, the migration notes and thelitellm-proxy-extrasmigrations between v1.103.10 and the target version."otherat design (decisions): The decision tells the builder to link the page with its repository path. A relative link ink8s/README.mdresolves from thek8s/directory, sok8s/llm/gateway/UPGRADE.mdnamesk8s/k8s/llm/gateway/UPGRADE.mdand the invariant test in group 2 fails; the link must bellm/gateway/UPGRADE.md. Evidence: "Link the page fromk8s/README.mdwith the repository path of the page."criterion_droppedat issue (The plan SHALL state the update policy of the gateway image and its digest pin, and whether the target version is the newest release that fixes the known security and bug issues and that the config and the clients support.): The Update policy criterion requires the plan to state the gateway image's digest pin, but the plan's update rule states only the release-age rule and the version choice; no task says how the image is pinned, and the repository pins a tag rather than a digest. Evidence: "State the update rule in the same section: no minimum release age, and the newest release that answers the known security and bug issues and that the config and the clients support, withCONTRIBUTING.mdas its source"false_premiseat proposal (security): The plan claimsdevops scan secretsfails when it finds a key value, but the command renders the findings and exits 0;tests/security/test_security_gitleaks.pyassertsres_scan.exit_code == 0for a file with a GitHub token, so the claimed security check does not fail. Evidence: "uv run devops scan secrets k8s/llm/gateway/UPGRADE.mdfails when a key value lands in the page"false_premiseat proposal (feasibility): The feasibility says theRouterload needs no checkout of the repository, but group 1 reads themodel_listandrouter_settingsfromk8s/llm/gateway/config.yaml, a file of the checkout; the same feasibility block also says the scratch directory goes under the checkout. Evidence: "the call needs a network to PyPI for the wheel as its precondition, and no checkout of the repository and no client of a service"otherat tasks (2): Group 2 reads the pinned release'slitellm-proxy-extrasversion from the wheel metadata in the scratch directory, but group 1 installs only the target wheel withuv run --withand leaves the scratch directory empty, so the pinned release's metadata is not there; the pinned version is only in the archive proposal that the group also reads. Evidence: "Read thelitellm-proxy-extrasversion that thelitellm[proxy]wheel pins, for the pinned release and for the target, from the wheel metadata in the scratch directory."false_premiseat proposal (feasibility): The feasibility says the gateway config holds 12 model groups, but the config's model_list has 13 distinct model names: the 12 the comment counts plusdeepseek-v4.1-flash. The config-load section and the page's count would therefore be wrong. Evidence: "- model_name: deepseek-v4.1-flash"64 remaining items
devops-cli-service commentedon Nov 22, 2026
The runner Job devops-cli-implement-devops-cli-4406-975fa5 ended: failed.
Image digest: sha256:ac37478e14c1fda5565036365e77c0539d823e66d1366aeeb98a059076972fb4
The last lines of its log:
Failure class:
ci_infra.Action taken: none.
Action left:
retry: run the item again.The Job left this item without a result. The item is Blocked. When a retry can fix the class of the stop, the Service starts a new Job in the next round. The limit is
roadmap.implement.continuations_per_item, and the comment of that round says so. If no continuation is left, fix the cause. Then commentimplement: retry. A new runner image also clears the stop. This holds only if a retry can fix the class of the stop. The limits ofroadmap.implement.digest_clears_per_classandroadmap.implement.digest_clears_per_itemmust also allow it.fix(deps): update container images (#6817)
dan-petty commentedon Nov 25, 2026
Returned under rule 2 (premise stale against origin/main):
k8s/llm/gateway/deployment.yaml:46already runsghcr.io/berriai/litellm:1.110.2(updated fromv1.103.11in commitfb349e537, PR #6817). The current plan assumesv1.103.11is the pinned running image and rollback target and documents releases betweenv1.103.11and a target beyond 1.103. Note that.github/renovate.json:255still references #4406, so this should either be re-scoped to a generalk8s/llm/gateway/UPGRADE.mdagainst1.110.2or closed alongside updating.github/renovate.json.dan-petty commentedon Nov 26, 2026
Closed: the gateway is already past the planned upgrade.
dan-petty/homelab pins LiteLLM 1.111.0, newer than the 1.108.4 that this item planned for, and Renovate there takes later releases. The gateway manifests left this repository, so
k8s/llm/gateway/UPGRADE.mdhas no home. The unused plan folderopenspec/changes/4406-plan-the-litellm-upgrade-beyond-1/can be removed.