Repository navigation
Added a 7-day dependency cooldown for Poetry locks (INF-5262) - #62
Open
andriy-sudo wants to merge 1 commit into
Open
andriy-sudo wants to merge 1 commit into
andriy-sudo wants to merge 1 commit into
Conversation
Lock refreshes can no longer pick up a release younger than 7 days, so a malicious release that PyPI pulls within hours never reaches a lock (decision 5). Poetry: [solver] min-release-age = 7 in 1 project(s), requires-poetry >= 2.4; poetry.lock unchanged. Tooling pins: uv >= 0.13.6 / Poetry 2.4.3 where older versions would ignore the window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Ready for review: 0bc3de9 INF-5262 bulk (slices 2/3), round 1. The PR body has the recipe, per-lock proof and "decided" items. |
Contributor
Author
|
Review of 0bc3de9: CHANGES REQUESTED Round 1 (bulk). No code findings. Nothing for you to change.
Checks passed: every lock is covered; the window is at 7 days (uv |
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.
Linear: INF-5262
What and why
A malicious release of a popular package usually stays on PyPI for hours before it is pulled (for example
agent-framework1.26.1/1.26.2 on 2026-11-17, and litellm 1.82.7/1.82.8). This PR sets a 7-day dependency cooldown (INF-5262 decision 5), so a lock refresh can't pick up a release that new. It uses the same recipe as the approved pilots (eva#896, usage-service#306, goldfish#667).Poetry:
poetry.toml[solver] min-release-age = 7, plusmin-release-age-exclude-sourcefor the privatetinyfishsource where the project has one.requires-poetry = ">=2.4", because older Poetry ignores the setting without a warning. CI and Docker Poetry pins below 2.4 go to 2.4.3.poetry.lockis not changed.Tooling pins (uv < 0.9.25 can't parse the per-package
false, and uv < 0.9.17 drops the whole[tool.uv]table without an error):.github/workflows/precommits.ymlProof
Run against the private index with credentials, on the files in this PR.
poetry check --lock(2.4.3)poetry lock(2.4.3, no update): version changes.Poetry 2.4.3 honours the window and Poetry 2.3.4 refuses with
requires-poetry >=2.4(shown on goldfish#667).Decided
nosemgrep.After merge
uv sync --locked/poetry installstill pass there.🤖 Generated with Claude Code
@coderabbitai ignore