security: add 7-day exclude-newer cooldown#258
Open
burnpiro wants to merge 1 commit into
Open
Conversation
Refuse to resolve any PyPI dependency uploaded in the last 7 days (`[tool.uv] exclude-newer = "7 days"`). Mitigates blast radius of compromised dependencies (typosquatting, account takeovers, dependency confusion). Pins `required-version = ">=0.11.1"` so older uvs fail loudly instead of silently parsing "7 days" as an RFC 3339 date and proceeding *without* the cooldown — see uv#17908. zeroband has no first-party PrimeIntellect packages in its dep closure, so no `[tool.uv.exclude-newer-package]` exemptions are needed. Add the table when that changes. Lock regenerated: uv migrated the lockfile schema from revision 2 to revision 3 (large mechanical churn — 0 packages removed, 0 versions regressed). Schema migration is independent of the cooldown change. Part 1 of 3 in a coordinated supply-chain hardening across PI repos. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
4ce1599 to
79a388e
Compare
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.
What
Adds
exclude-newer = "7 days"to[tool.uv]so new PyPI uploads are filtered out until they've been on the index for ≥ 7 days.zerobandhas no first-party PrimeIntellect packages in its closure, so no[tool.uv.exclude-newer-package]exemptions are needed yet — the comment inpyproject.tomldocuments when to add one.Why
Most malicious PyPI uploads (typosquatting, account takeovers, dependency confusion) are detected and yanked within hours-to-days. A short cooldown quarantines them at near-zero cost. Part 1 of 3 in a coordinated supply-chain hardening across PrimeIntellect repos.
Notes
uv.lockdiff is large but mechanical: uv migrated the lockfile schema fromrevision = 2→revision = 3. The semantic diff is just the new[options]block recording the cooldown. Zero packages removed; zero version regressions.uv lock --checkpasses locally.tool.uv.dev-dependencies(pre-existing; should migrate todependency-groups.devin a follow-up).🤖 Generated with Claude Code