Update python dependencies#1832
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates Python dependency pins/lower bounds across multiple services and internal libraries to address known CVEs (notably around urllib3, plus bumps to fastapi/starlette, PyJWT, and protobuf) and refreshes the corresponding uv.lock files.
Changes:
- Raise
urllib3minimum versions (and refreshuv.lockresolutions) across several components. - Upgrade
fastapiandstarletteversions/constraints in multiple services. - Upgrade
PyJWTandprotobufversions/constraints across services and shared libs, updating lock files accordingly.
Reviewed changes
Copilot reviewed 16 out of 32 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| platform/services/weights_uploader/pyproject.toml | Bumps urllib3 lower bound for CVE mitigation. |
| platform/services/weights_uploader/uv.lock | Updates locked resolution to reflect new urllib3 constraint. |
| platform/services/user_directory/pyproject.toml | Upgrades fastapi, raises starlette lower bound, bumps pyjwt. |
| platform/services/user_directory/uv.lock | Refreshes lock with new FastAPI/Starlette/PyJWT and transitives. |
| platform/services/onboarding/pyproject.toml | Upgrades fastapi, raises starlette/urllib3 lower bounds, bumps PyJWT. |
| platform/services/onboarding/uv.lock | Refreshes lock for updated FastAPI/Starlette/PyJWT/urllib3. |
| platform/services/observability/pyproject.toml | Upgrades fastapi, raises starlette lower bound. |
| platform/services/observability/uv.lock | Refreshes lock for updated FastAPI/Starlette and transitives. |
| platform/services/initial_user/pyproject.toml | Bumps pyjwt and dev protobuf constraint. |
| platform/services/initial_user/uv.lock | Refreshes lock for updated PyJWT/Protobuf and transitives. |
| platform/services/account/tests/pyproject.toml | Bumps PyJWT[crypto] for tests. |
| platform/services/account/tests/uv.lock | Refreshes lock for updated PyJWT test dependency. |
| platform/libs/users_handler/pyproject.toml | Bumps pyjwt and dev protobuf constraint. |
| libs/grpc_interfaces/pyproject.toml | Bumps protobuf constraint for model_registration extra. |
| libs/grpc_interfaces/uv.lock | Refreshes lock to newer protobuf and transitives. |
| libs/fastapi_tools/pyproject.toml | Bumps PyJWT constraint. |
| libs/fastapi_tools/uv.lock | Refreshes lock metadata for updated PyJWT constraint. |
| interactive_ai/tests/e2e/pyproject.toml | Bumps urllib3; adds virtualenv and filelock deps. |
| interactive_ai/tests/e2e/uv.lock | Refreshes lock for updated urllib3 and added deps. |
| interactive_ai/services/visual_prompt/pyproject.toml | Upgrades fastapi and raises starlette lower bound. |
| interactive_ai/services/visual_prompt/uv.lock | Refreshes lock for new FastAPI/Starlette and transitives. |
| interactive_ai/services/resource/pyproject.toml | Upgrades fastapi and raises starlette lower bound. |
| interactive_ai/services/resource/uv.lock | Refreshes lock for new FastAPI/Starlette and transitives. |
| interactive_ai/services/jobs/pyproject.toml | Upgrades fastapi and raises starlette lower bound. |
| interactive_ai/services/jobs/uv.lock | Refreshes lock for new FastAPI/Starlette and transitives. |
| interactive_ai/services/director/pyproject.toml | Upgrades fastapi and raises starlette lower bound. |
| interactive_ai/services/director/uv.lock | Refreshes lock for new FastAPI/Starlette and transitives. |
| interactive_ai/migration_job/pyproject.toml | Raises urllib3 lower bound; bumps dev protobuf constraint. |
| interactive_ai/migration_job/uv.lock | Refreshes lock for updated urllib3/protobuf and transitives. |
| interactive_ai/libs/iai_core_py/pyproject.toml | Raises urllib3 lower bound. |
| interactive_ai/libs/iai_core_py/uv.lock | Refreshes lock metadata to reflect urllib3 constraint. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
piotrgrubicki
approved these changes
May 13, 2026
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
Updates python dependencies to get rid of potential security risks due to known CVEs.
✨ Type of Change
Select the type of change your PR introduces:
🧪 Testing Scenarios
Describe how the changes were tested and how reviewers can test them too:
✅ Checklist
Before submitting the PR, ensure the following: