You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The UK Chronicle rebuild's Modal image still trusts the compromised eMudhra certificate authorities #1768
Tracked as task 5d · 3 of the "1. Collector/Emitter" project.
tools/modal_rebuild_uk_chronicle_artifact.py defines the Modal image that rebuilds the pinned Chronicle UK consumer artifact. The image still trusts the compromised eMudhra (emSign) certificate authorities, whose intermediate private keys were disclosed on 2026-10-20 (changelog.d/emudhra-ca-trust.fixed.md):
It installs uv 0.11.7, whose compiled-in CA list still holds the eMudhra roots.
It installs uv and huggingface_hub, without hash pins, through the cached debian_slim base's pip 25.3, whose bundled certifi still contains emSign ECC Root CA - G3.
It never upgrades ca-certificates, the CA store that git's clone of Chronicle and the standard library's ssl module read.
It sets no certifi floor for the image's own Python, where the upload's Hub client checks the Hub's certificate against certifi.
A run that opts into uploading (MICROCOSM_UK_CHRONICLE_MODAL_UPLOAD=1) carries HF_TOKEN, which can write to the private UK build-inputs repository. A package swapped in over an intercepted connection would run with that token, and the upload's own connection could be intercepted.
Found in review round 2 of #1758, which fixes the same exposure in tools/modal_uk_cut.py.
Fix
Do what the US Modal image (tools/modal_us_stage.py, values in tools/modal_us_stage_plan.py) does, before anything else is downloaded:
name ca-certificates in apt_install;
replace the base's pip with the hash-pinned pip 26.2.2;
install uv 0.13.4;
require certifi 2026.10.19 or later beside huggingface_hub.
The app keeps its own constants, and tests compare them with the US image's.
Activity
Check the rebuild image's step options too
Name the eMudhra root the rebuild image stops trusting
Correct when certifi dropped the eMudhra G3 root