fix: cherry-pick Prisma offline binaries feature for egress traffic fix - #62
Merged
mateo-di merged 8 commits intoJan 7, 2026
Merged
Conversation
…e for Security Restricted environments (BerriAI#17695) * Use config file to enable prometheus metrics * Revert "Use config file to enable prometheus metrics" This reverts commit 15ae36e. * Improve hardened stack and Prisma offline flow * Document hardened compose usage * Remove undesired change in fastapi-sso * Restore dashboard lockfile * Remove unecessary tempdirs * Document hardened/offline Docker validation flow
Collaborator
Author
|
/gemini review |
mateo-di
marked this pull request as ready for review
December 17, 2025 14:36
CARTO fork encodes chunk IDs for Redis session consistency. Updated test to match this behavior instead of upstream's raw IDs.
- test_mock_create_audio_file: requires LITELLM_LICENSE for Enterprise features - test_anthropic_web_search_in_model_info: model_prices_and_context_window.json out of sync These should be addressed in separate PRs.
…nges The encrypt_value_helper and decrypt_value_helper functions now accept additional keyword arguments (key, new_encryption_key, return_original_value). Updated the mock functions to accept these parameters to prevent test failures.
The test_url_with_format_param tests were broken by changes introduced in a previous merge conflict resolution. Reverting to the working origin/main version.
8 tasks
3 tasks
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Shortcut
Cherry-picks the Prisma offline binaries feature from upstream to fix egress traffic issues in security-restricted environments.
Changes
PRISMA_OFFLINE_MODEenvironment variable to prevent runtime downloadsdocker-compose.hardened.ymlfor security-restricted deploymentsKey Files Modified
docker/Dockerfile.non_root- Build-time Prisma binary caching withPROXY_EXTRAS_SOURCE=locallitellm-proxy-extras/litellm_proxy_extras/utils.py- Private helper functions and improved P3018 error handlingdocker-compose.hardened.yml- New hardened compose configurationdocker/README.md- Documentation for hardened/offline Docker validationType of change
Acceptance
docker build -f docker/Dockerfile.non_root -t litellm-test .PRISMA_OFFLINE_MODE=trueBasic checklist