Skip to content

test(security): pin the What's new catalog local in the canary egress rig - #45925

Merged
mateo-berri merged 1 commit into
mainfrom
litellm_circleci_heal_whats_new_egress
Oct 11, 2026
Merged

mateo-berri merged 1 commit into
mainfrom
litellm_circleci_heal_whats_new_egress

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • integration-security 2256856 turned red on main at 5390199 in pipeline 91141, green in the scheduled pipeline 91130
  • Every canary_rig test fails with Owned proxy tried to reach external hosts: [b'CONNECT raw.githubusercontent.com:443 HTTP/1.1']

How it solves it:

  • LOCAL_CATALOGS in tests/integration/security/_sinks.py now also sets LITELLM_LOCAL_WHATS_NEW, next to the cost map, blog posts, beta headers, auto-router presets and policy templates

Culprit is 55c8997 (#45912). It added get_whats_new, which fetches whats_new.json from raw.githubusercontent.com unless LITELLM_LOCAL_WHATS_NEW is true, and serves the bundled file on failure. The canary rig routes owned proxies through an egress trap and asserts no external host was contacted, so the new remote catalog trips that check on every rig. The rig already pins each sibling remote catalog to its bundled copy, so pinning this one keeps the egress assertion as strict as before

Failing test ids include tests/integration/security/test_config_deployment_key.py::test_config_deployment_api_key_reaches_only_the_provider, tests/integration/security/test_stored_config_slots.py::test_master_key_from_env_authorizes_admin_calls_only, tests/integration/security/test_passthrough_slots.py::test_upstream_credential_reaches_only_its_upstream, tests/integration/security/test_mcp_slots.py::test_mcp_credential_reaches_only_its_peer and tests/integration/security/test_callback_credentials.py cases

User Flow

Before: a maintainer reading CircleCI on main sees integration-security red

  1. They open pipeline 91141 on main
  2. integration-security shows every canary test failing on raw.githubusercontent.com egress

After: the same job is green again

  1. They open the CircleCI pipeline on this branch
  2. integration-security passes and the egress assertion still guards every rig

Pre-Submission checklist

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

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. 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 more
  • 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

This is a test-only fix, so the proof is the red CircleCI job passing on this branch

Before (5390199)

  1. main pipeline 91141 has integration-security 2256856 red on the egress assertion

After (67d02db)

  1. Branch pipeline 91142 has integration-security 2256938 green with zero egress failures
  2. integration-accounting-coverage failed once on 91142 and passed on rerun

Type

✅ Test

Caveats (if any)

Medium

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
  • 67d02db passes /live-pr-risk

… rig

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

@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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 67d02db. Configure here.

@codecov

codecov Bot commented Oct 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@mateo-berri mateo-berri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mateo-berri
mateo-berri merged commit f85afa6 into main Oct 11, 2026
133 of 140 checks passed
@mateo-berri
mateo-berri deleted the litellm_circleci_heal_whats_new_egress branch October 11, 2026 07:42
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.

1 participant