Add 7-day supply-chain cooldown to dependency resolution#839
Draft
SimonHeybrock wants to merge 1 commit intomainfrom
Draft
Add 7-day supply-chain cooldown to dependency resolution#839SimonHeybrock wants to merge 1 commit intomainfrom
SimonHeybrock wants to merge 1 commit intomainfrom
Conversation
Switch pip-compile-multi to use uv as backend resolver and set UV_EXCLUDE_NEWER to 7 days in the past. This excludes recently uploaded package versions from dependency resolution, reducing risk of supply-chain attacks via newly published malicious packages. The cooldown can be overridden by setting UV_EXCLUDE_NEWER in the environment before running tox -e deps. Also removes the pip==24.2 pin (workaround for pip-tools#2131) which is no longer needed with the uv backend.
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.
Summary
pip-compile-multito useuvas backend resolver (--uvflag)compile_with_cooldown.pywrapper that setsUV_EXCLUDE_NEWERto 7 days in the past before invokingpip-compile-multipip==24.2pin (workaround for pip-tools#2131), no longer needed with the uv backendThis means that when running
tox -e deps, only package versions uploaded at least 7 days ago are considered during resolution. This reduces risk of supply-chain attacks via newly published malicious packages.The cooldown can be overridden by setting
UV_EXCLUDE_NEWERin the environment, e.g., to pick up a known-good recent release of one of our own packages.Test plan
tox -e depscompiles all requirement files successfully with the uv backend🤖 Generated with Claude Code