Skip to content

chore(deps): relax exact pins to patched ranges for consumer security updates - #2881

Merged
naorpeled merged 1 commit into
mainfrom
fix/2523-relax-dependency-pins
Aug 29, 2026
Merged

naorpeled merged 1 commit into
mainfrom
fix/2523-relax-dependency-pins

Conversation

@naorpeled

Copy link
Copy Markdown
Member

Fixes #2523.

What

Relaxes the exact == pins for the packages named in the issue to >=<patched>,<next-major> ranges in [project.dependencies]:

Package Before After
aiohttp ==3.14.3 >=3.14.3,<4
dynaconf ==3.2.13 >=3.2.13,<4
fastapi ==0.141.1 >=0.141.1,<1
GitPython ==3.1.59 >=3.1.59,<4
starlette ==1.6.0 >=1.6.0,<2
PyJWT ==2.13.0 >=2.13.0,<3
ujson ==5.13.0 >=5.13.0,<6

Every floor is the currently-vetted patched release, so consumers can never resolve below what we ship today — they can only move forward to future patches.

Why now (resolving the reproducibility objection)

The original concern with relaxing pins was reproducibility / supply-chain exposure for our own builds. Since #2509 merged, that concern is handled by uv.lock: Docker images, CI, and uv sync all install exact locked versions regardless of the declared ranges. The lockfile's resolved versions are unchanged by this PR (the uv.lock diff touches only the specifier metadata) — repo builds are byte-for-byte the same. The declared ranges only affect pip consumers of the published package, who per the issue are currently forced into security exceptions or forks when CVEs land in these dependencies (e.g. starlette CVE-2025-62727 was unreachable behind the old fastapi cap at any level).

Scope

Deliberately limited to the seven packages from #2523. The rest of the dependency list keeps exact pins; if this pattern works out, relaxing further entries can follow the same recipe (bump-and-vet the floor in uv.lock, declare the range).

Verification

  • uv lock after the change: resolved versions identical, only specifiers differ.
  • PYTHONPATH=. uv run pytest tests/unittest → 2624 passed, 1 skipped, 1 xfailed.

🤖 Generated with Claude Code

… updates

Declare >=patched,<next-major ranges for the packages named in #2523
(aiohttp, dynaconf, fastapi, GitPython, starlette, PyJWT, ujson) instead of
== pins. This repo's own builds stay fully reproducible via uv.lock — the
lockfile's resolved versions are unchanged by this commit — while pip
consumers of the pr-agent package can now pull security patches on their
own cadence without waiting for a release.

Fixes #2523
@github-actions github-actions Bot added the chore label Aug 29, 2026
@qodo-code-review

qodo-code-review Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Code Review by Qodo

Grey Divider

Sorry, something went wrong

We weren't able to complete the code review on our side. Please try again manually by commenting /agentic_review on this PR.

Grey Divider

Qodo Logo

@naorpeled
naorpeled merged commit 10618b1 into main Aug 29, 2026
6 checks passed
@naorpeled
naorpeled deleted the fix/2523-relax-dependency-pins branch August 29, 2026 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Relax exact == pins on transitive deps so consumers can pull security patches (GitPython, aiohttp, PyJWT, dynaconf, ujson, starlette/fastapi)

1 participant