Fix MIG-2057/2066: vendor dnspython and azure-core wheels for hermetic build #52
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 268 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.335
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #52"
general
weight: 0.35
awels
Summary
Reworks the fix from #51, which broke the build.
What went wrong in #51
#51 used
pip3 install --upgradeto pull the patched packages from PyPI. MTC images build hermetically —group.ymlonmtc-1.8setskonflux.network_mode: hermeticfor the whole group — so there is no network at build time:RPMs are fine because cachi2 prefetches them via the rpm lockfile, but no pip prefetch is configured, so anything from PyPI is unreachable.
The fix
Vendor the wheels into the repo and install from local files — the same pattern
mig-operatoralready uses inhack/build/third-party/pip3-install-dir:| Package | Base image | Vendored | CVE |
|---------|-----------|----------|-----|
| dnspython | 2.6.1 | 2.9.0 | CVE-2026-114605 (MIG-2057) |
| azure-core | 1.31.0 | 1.38.0 | CVE-2026-21226 (MIG-2066) |
Both are pure-Python wheels with no build step.
--no-depsis safe because their dependencies are already satisfied in the base image — requests 2.31.0, six 1.17.0, typing_extensions 4.15.0, against requirements of >= 2.21.0, >= 1.11.0 and >= 4.6.0. dnspython has no required dependencies.Testing
Ran the install inside the base image with networking disabled, to mimic the hermetic build:
Jira
Resolves: MIG-2057, MIG-2066