Skip to content

build: add supply chain hardening via uv exclude-newer and pip uploaded-prior-to#3258

Merged
julian-risch merged 10 commits into
mainfrom
supply-chain-hardening
May 15, 2026
Merged

build: add supply chain hardening via uv exclude-newer and pip uploaded-prior-to#3258
julian-risch merged 10 commits into
mainfrom
supply-chain-hardening

Conversation

@julian-risch
Copy link
Copy Markdown
Member

@julian-risch julian-risch commented Apr 30, 2026

Related Issues

As recent motivation for this PR, there has been a compromised PyPI release of the mistralai package. Only version 2.4.6 was affected. It was uploaded on May 12, 2026 at 00:05 UTC and has been removed on May 12, 2026 at 03:05 UTC according to Mistral AI. Details here.

Given the short time window, uv exclude-newer and pip uploaded-prior-to seem to be a reasonable supply-chain security improvement.

Proposed Changes:

  • Add uv.toml with exclude-newer = "24 hours" so all uv pip installs skip packages published within the last day
  • Add Dependabot cooldown (default-days: 1) for github-actions and pip
  • Upgrade pip before each pip install step and add --uploaded-prior-to=P1D (pip 26.1 relative duration) to all direct pip install commands in CI
  • Add UV_NO_CONFIG=1 to the llama_stack "Test Llama Stack Server" step to exempt it from exclude-newer: the PyTorch wheel index omits upload dates for sympy, causing uv to use the cutoff itself as the fallback timestamp — placing those packages exactly at the exclusive boundary and excluding them regardless of the date set

How did you test it?

Ran uv pip install mistralai locally, which seems to also pick up the root uv.toml.

Notes for the reviewer

I am unsure if the changes to root uv.toml are enough or if the setting should be in pyproject.toml of all individual integrations. My understanding is that the uv.toml is enough because this will protect our CI.

I would merge despite failing tests once approved.

Checklist

- Add uv.toml with exclude-newer = "24 hours" so all uv pip installs
  skip packages published within the last day
- Add Dependabot cooldown (default-days: 1) for github-actions and pip
- Upgrade pip before each pip install step and add --uploaded-prior-to=P1D
  (pip 26.1 relative duration) to all direct pip install commands in CI

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (kreuzberg)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (mongodb_atlas)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (meta_llama)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (togetherai)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (stackit)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (paddleocr)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (snowflake)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (qdrant)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (deepeval)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (libreoffice)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (valkey)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (mcp)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (google_genai)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (supabase)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (elasticsearch)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (opensearch)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (pgvector)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (oracle)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (ollama)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (optimum)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (hanlp)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (docling)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (ragas)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (chonkie)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (llama_cpp)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (unstructured)

This PR does not seem to contain any modification to coverable code.

Copy link
Copy Markdown
Member

@anakin87 anakin87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@julian-risch julian-risch merged commit ec7b468 into main May 15, 2026
406 of 419 checks passed
@julian-risch julian-risch deleted the supply-chain-hardening branch May 15, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants