Skip to content

fix(proxy-extras): backport #44203 to rc/1.105.0 - #44220

Merged
yassin-berriai merged 1 commit into
rc/1.105.0from
litellm_backport_44203_rc_1_105_0
Oct 2, 2026
Merged

yassin-berriai merged 1 commit into
rc/1.105.0from
litellm_backport_44203_rc_1_105_0

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

How it solves it:

User Flow

Before: an operator on the 1.105 rc with DATABASE_SSLMODE=verify-full and DATABASE_SSLROOTCERT cannot roll out the rc image

  1. They deploy the Helm chart; the litellm-migrations hook job starts with the discrete DATABASE_* vars
  2. prisma migrate deploy logs No pending migrations to apply
  3. The job then logs certificate present, but not private key file ".../.postgresql/postgresql.key" and Migration job failed after retries
  4. Argo stays OutOfSync retrying the hook and the gateway never moves to the rc image

After: the same rollout completes

  1. They deploy the Helm chart; the hook job starts with the same vars
  2. prisma migrate deploy logs No pending migrations to apply
  3. The index build connects over TLS with the CA verified and the job logs Request-log indexes are all in place and Migration job completed successfully
  4. Argo goes Synced and the gateway rolls to the rc image

Affected release

Regression since #43948, which is on rc/1.105.0 (c66c828); fix merged to main in #44203

Linear ticket

Resolves LIT-9169

Backport checklist

  • fix(proxy-extras): hand libpq a root cert, not Prisma's sslcert, when the migration job builds indexes #44203 cherry-picked from its main squash commit 4758fce, original author and provenance kept, one commit
  • Clean pick: both touched files are byte-identical between rc/1.105.0 and the parent of the main squash, so the diff on this branch is byte-identical to the main diff (same git diff | md5sum)
  • No hidden prerequisites: _strip_prisma_query_params, build_request_log_indexes and the test module all exist on rc/1.105.0 in the same shape as main
  • rc line, so pyproject.toml stays at 1.105.0 and litellm-proxy-extras at 0.4.104; no version bump
  • tests/unit/litellm_proxy_extras/test_litellm_proxy_extras_utils.py 96 passed in the worktree at bd55bf6 and scripts/ruff_strict_gate.py --base origin/rc/1.105.0 reports OK; the whole-file ruff check and ruff format --check hits in both files are pre-existing on rc/1.105.0 and on main's tip too, so they are left alone rather than reformatting 300+ unrelated lines

Screenshots / Proof of Fix

The pick is byte-identical to main, so the proof is the one captured on #44203 at 80b9b19: read-only psycopg connect to a production Aurora writer over verify-full with IAM token auth (Before fails with the client-key error, After connects over TLSv1.3), a local TLS Postgres migration job (Before Migration job failed after retries, After builds both indexes and completes), and an 11-cell deployment-mode matrix as the full migration job against a throwaway RDS instance (password and IAM auth over verify-full, rootcert only, require, no TLS vars, pinned libpq URL, DIRECT_URL, Prisma-only params): every cell carrying a root cert fails Before and passes After, the four no-root-cert cells are identical Before and After. See the Screenshots / Proof of Fix section of #44203

Type

🐛 Bug Fix

Caveats (if any)

Low

Link to Devin session: https://app.devin.ai/sessions/31df1e5228c14f0ca299306f8d60b3af
Open in Devin Desktop: https://app.devin.ai/desktop/session/31df1e5228c14f0ca299306f8d60b3af?variant=devin
Requested by: @yassin-berriai

… the migration job builds indexes (#44203)

Backport of #44203 to rc/1.105.0.
Cherry-picked from 4758fce (main).

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

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@greptile-apps

greptile-apps Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[High risk] Changes database connection URL parsing for proxy service.

The PR appears safe to merge; no actionable regression was established

Summary

This backport converts Prisma TLS query parameters into their libpq equivalents before the migration job’s psycopg connections.

  • Moves Prisma’s CA value from sslcert to sslrootcert and maps strict verification to verify-full
  • Adds URL-transformation tests for the main TLS modes and parameter combinations

Reviews (1) · Last reviewed commit: "fix(proxy-extras): hand libpq a root cer..."

@yassin-berriai
yassin-berriai merged commit 8e7ded2 into rc/1.105.0 Oct 2, 2026
6 checks passed
@yassin-berriai
yassin-berriai deleted the litellm_backport_44203_rc_1_105_0 branch October 2, 2026 19:08
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.

2 participants