Repository navigation
build(deps): bump certifi to 2026.10.23 - #48596
shrey-berri wants to merge 1 commit into
Conversation
|
bugbot run |
|
@greptileai review |
|
/devin review |
| def test_locked_certifi_version_drops_emsign_c1_c3_roots() -> None: | ||
| locked: Final = _locked_package("certifi")["version"] | ||
| assert isinstance(locked, str) | ||
| assert Version(locked) >= CERTIFI_EMSIGN_C1_C3_REMOVAL, CERTIFI_EMSIGN_C1_C3_REMOVAL_SOURCE |
There was a problem hiding this comment.
🟡 Certifi tests miss unwanted trusted roots
When get_ssl_configuration() trusts emSign C1 or C3 again, the new tests still pass. They check certifi versions, not the roots trusted by the default SSL context.
Learn more
The new assertions check dependency declarations and lock metadata. Neither tests the default SSL context, which is the behavior the change intends to protect. The test rules require functional regression tests rather than tests of structure or implementation details test policy. get_ssl_configuration selects and caches the CA file used for outbound requests, so a later change there can restore unwanted trust without changing either version assertion.
Example: If the default SSL context starts loading another CA file containing emSign C1, both version tests pass while outbound TLS accepts certificates chaining to C1.
Recommended fix: Test the CA certificates returned by get_ssl_configuration() under the installed dependency and assert that C1 and C3 are absent, while retaining metadata checks only if they add value.
Was this helpful? React with 👍 or 👎 to provide feedback.
[Medium impact] The PR changes the default CA bundle used for LiteLLM outbound TLS. The dependency changes appear consistent, but the new tests must satisfy the repository’s behavior-only test requirement before merging Findings
SummaryRaises the The new version-only tests conflict with the repository’s behavior-only test requirement
Reviews (1) · Last reviewed commit: "build(deps): bump certifi to 2026.10.23" · Reviewed by Greptile |
| assert any( | ||
| specifier.operator == ">=" and Version(specifier.version) >= CERTIFI_EMSIGN_C1_C3_REMOVAL | ||
| for specifier in declared[0].specifier | ||
| ), CERTIFI_EMSIGN_C1_C3_REMOVAL_SOURCE |
There was a problem hiding this comment.
Both new tests pin dependency versions rather than behavior, violating the behavior-only test rule. Remove or replace them before merging
Context Used: AGENTS.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 9c711d2c8498a96955e3e8bd8bd494994567f616. Configure here.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
certifi 2026.10.23 drops emSign Root CA - C1 and emSign ECC Root CA - C3 (certifi/python-certifi#445), so the default outbound TLS trust now matches the roots grpcio 1.84.1 and webpki-roots 1.0.11 already use. - raise the certifi floor to >=2026.10.23 in pyproject.toml, packaging/litellm-core/pyproject.toml and liccheck.ini - lock certifi 2026.10.23 in uv.lock (no other package changes) - remove the expired GHSA-6q48-6c7w-9gw2 osv-scanner ignore; the advisory was fixed in 2026.10.18 - test that the default SSL context no longer trusts emSign C1 or C3, and stop two SSL tests from leaking a fake context into the shared cache Follow-up to #47969.
9c711d2 to
f0f0f4f
Compare
Merging this PR will not alter performance1 warning
Comparing |
This bumps certifi to 2026.10.23, which drops the emSign Root CA - C1 and emSign ECC Root CA - C3 roots, so LiteLLM's default outbound TLS trusts the same emSign roots that grpcio 1.84.1 and webpki-roots 1.0.11 already trust. It is a follow-up to #47969, which moved certifi to 2026.10.19. It also removes the osv-scanner ignore for GHSA-6q48-6c7w-9gw2, which expired on 2026-10-23
Details
TLDR
Problem this solves:
How it solves it:
>=2026.10.23in all three declarationsuv.lockwith no other package changesUser Flow
Before: a proxy built from the lock trusts servers that chain to emSign C1 or C3
uv sync --frozen, as the Dockerfile doesAfter: the same build trusts only emSign Root CA - G1 of the emSign roots
uv sync --frozen, as the Dockerfile doesRelevant issues
Follow-up to #47969
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
uv run pytest tests/unit/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or moreDelays 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
Shared setup: the CA check runs LiteLLM's own
get_ssl_configuration()and lists the emSign roots in the SSLContext it returnsBefore (cfe0100)
Locked certifi version
grep -n -A1 '^name = "certifi"' uv.lockversion = "2026.10.19"Default outbound TLS trust
SSLContext ['emSign ECC Root CA - C3', 'emSign Root CA - C1', 'emSign Root CA - G1']New test against the old certifi
pytest -q tests/unit/llms/custom_httpx/test_http_handler.pytest_default_ssl_context_does_not_trust_emsign_roots_removed_from_certififails withcertifi 2026.10.23 dropped both roots, certifi/python-certifi#445After (1bd196bd3e)
Locked certifi version
uv lock --check(uv 0.13.5) anduvx --from uv==0.10.9 uv lock --check(the version CI pins)Resolved 470 packages, exit 0uv sync --frozen --no-default-groups --no-editable --dry-run+ certifi==2026.10.23grep -n certifi pyproject.toml packaging/litellm-core/pyproject.toml tests/code_coverage_tests/liccheck.ini>=2026.10.23in all threeDefault outbound TLS trust
SSLContext ['emSign Root CA - G1']New test against the new certifi
uv.lock), runpytest -q tests/unit/llms/custom_httpx/test_http_handler.pyosv-scanner ignore
grep -c GHSA-6q48 osv-scanner.toml0Type
🚄 Infrastructure
✅ Test
Final Attestation