Skip to content

[Backport release-0.5] Pin the model cache hydration image to one that distrusts eMudhra - #564

Closed
dennis-upbound wants to merge 1 commit into
modelplaneai:release-0.5from
dennis-upbound:dennis/backport-561-to-release-0.5
Closed

dennis-upbound wants to merge 1 commit into
modelplaneai:release-0.5from
dennis-upbound:dennis/backport-561-to-release-0.5

Conversation

@dennis-upbound

Copy link
Copy Markdown
Collaborator

Description of your changes

Backport of #561 to release-0.5, for v0.5.1. The backport bot couldn't cherry-pick it because the cache function's tests have diverged on main. The only conflict was the expected hydration image in tests/test_fn.py; I kept release-0.5's tests and updated that one line to the pinned image.

I have:

  • Read and followed Modelplane's contribution process.
  • Run nix flake check (or ./nix.sh flake check) and made sure it passes. Relying on CI for this branch.
  • Added or updated tests covering any composition function changes.
  • Signed off every commit with git commit -s.

The hydration Job ran python:3.11-slim, whose pip 24.0 vendors a 2023
certifi that still trusts the compromised eMudhra intermediate CAs. The
Job pip installs huggingface_hub from PyPI with the cache's HF_TOKEN in
its environment, then writes the weights serving pods load. Anyone able
to forge a certificate for PyPI on that path could run code in the Job,
taking the token and tampering with the weights.

This commit moves the Job to a python:3.13-slim pinned by digest, whose
pip 26.2.2 distrusts the intermediates.

Signed-off-by: Nic Cope <nicc@rk0n.org>
(cherry picked from commit 3b8cba2)
Signed-off-by: Dennis Ramdass <dennis@upbound.io>
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.

2 participants