Skip to content

Add 7-day supply-chain cooldown to dependency resolution#839

Draft
SimonHeybrock wants to merge 1 commit intomainfrom
worktree-pip-cooldown
Draft

Add 7-day supply-chain cooldown to dependency resolution#839
SimonHeybrock wants to merge 1 commit intomainfrom
worktree-pip-cooldown

Conversation

@SimonHeybrock
Copy link
Copy Markdown
Member

Summary

  • Switches pip-compile-multi to use uv as backend resolver (--uv flag)
  • Adds a compile_with_cooldown.py wrapper that sets UV_EXCLUDE_NEWER to 7 days in the past before invoking pip-compile-multi
  • Removes the pip==24.2 pin (workaround for pip-tools#2131), no longer needed with the uv backend

This 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_NEWER in the environment, e.g., to pick up a known-good recent release of one of our own packages.

Test plan

  • tox -e deps compiles all requirement files successfully with the uv backend
  • CI passes with the recompiled requirements

🤖 Generated with Claude Code

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.
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