derrickaw opened a new pull request, #41802: URL: https://github.com/apache/beam/pull/41802
Note: this PR was auto-generated by tooling. Before moving it out of draft, the author has done a full review of the PR, specifically evaluating it on the following criteria: - The PR remediates a confirmed, live vulnerability on `master` that Dependabot is not already addressing - The version update is minimal, respects Beam's compatibility bounds, and avoids unrelated dependency churn - Relevant lockfiles, package constraints, and tests have been verified If you have concerns with the PR or with the underlying methodology used to generate this, please comment below - they will be addressed by the author not the tooling :) ### Summary Bumps `protobuf` (`4.25.8` -> `6.33.6`), `grpcio-tools` (`1.62.1` -> `1.81.2`), and `google-cloud-datastore` (`2.11.0` -> `2.27.1`) in `playground/infrastructure/requirements.txt` and regenerates the checked-in Python protobuf/gRPC stubs to resolve `CVE-2026-0994` (`GHSA-7gcm-g887-7qv7`, JSON recursion depth bypass in `google.protobuf.json_format.ParseDict`). ### Why these three pins move together - `google-cloud-datastore==2.11.0` caps `protobuf<5.0.0dev` and `grpcio-tools==1.62.1` caps `protobuf<5.0dev`, preventing a standalone `protobuf` bump. - Upgrading `protobuf` to `6.33.6` with `grpcio-tools==1.81.2` (`protobuf>=6.33.5,<7.0.0`) and `google-cloud-datastore==2.27.1` (`protobuf>=6.33.5,<8.0.0`) resolves cleanly alongside existing `playground/infrastructure/requirements.txt` pins (including `requests~=2.28.2`, `sonora==0.2.2`, and `pydantic==1.10.13`) with zero `pip check` conflicts. - `protobuf>=5.26` enforces gencode/runtime major-version validation, so the Python stubs under `playground/infrastructure/api/v1/` are regenerated with `grpcio-tools==1.81.2` (`protoc` Python gencode `6.33.5`, `GRPC_GENERATED_VERSION = '1.81.2'`). Go and Dart stubs are untouched. ### Changes - **`playground/infrastructure/requirements.txt`**: Bumped `grpcio-tools==1.81.2`, `protobuf==6.33.6`, and `google-cloud-datastore==2.27.1`. - **`playground/infrastructure/api/v1/api_pb2.py`, `api_pb2.pyi`, `api_pb2_grpc.py`**: Regenerated from `playground/api/v1/api.proto` using `python -m grpc_tools.protoc -I. --python_out=infrastructure --pyi_out=infrastructure --grpc_python_out=infrastructure api/v1/api.proto`. ### Verification - Installed the full `playground/infrastructure/requirements.txt` in a clean Python 3.11 virtual environment and ran `pip check` (0 conflicts). - Ran `pytest -v` in `playground/infrastructure/` across all 8 test suites (`test_checker.py`, `test_ci_cd.py`, `test_datastore_client.py`, `test_grpc_client.py`, `test_helper.py`, `test_logger.py`, `test_utils.py`, `test_verify.py`): **79 passed**. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
