Repository navigation
Rebuild autoindex image on patched base to distrust compromised eMudhra CAs (INC-541) - #233
Merged
Merged
Conversation
…ra CAs The pinned base (Alpine 3.18, Node 16, pip 23.2.1, certifi 2023.07.22) still trusts the compromised eMudhra intermediates (INC-541) in curl, wget, git, Node, pip and certifi, and Node 16 / Alpine 3.18 / Python 3.10 images no longer receive updates. Move to python3.11-nodejs24-alpine (Alpine 3.24, Node 24.22.1, pip 26.2.2, certifi 2026.10.19) and require ca-certificates 20261020-r0, which the base does not ship yet. Amp-Thread-ID: https://ampcode.com/threads/T-01a16041-ef1e-774a-957e-9f7122a62a0e Co-authored-by: Amp <amp@ampcode.com>
eseliger
approved these changes
Oct 21, 2026
This was referenced Oct 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
INC-541: the pinned autoindex image (
sourcegraph/scip-python@sha256:b54e304e…, pinned in sourcegraph/sourcegraphinternal/codeintel/autoindexing/internal/inference/libs/indexes.go) still trusts the compromised eMudhra intermediates (https://emudhra.we-have-a-problem.com/). Its base is Alpine 3.18, Node 16, Python 3.10, pip 23.2.1 and certifi 2023.07.22. Node 16, Alpine 3.18 and the Python 3.10 base tags no longer receive updates.Change
nikolaik/python-nodejs:python3.11-nodejs24-alpine(pinned digest): Alpine 3.24.2, Node 24.22.1, Python 3.11.17, pip 26.2.2, certifi 2026.10.19 (pip's vendored copy too). Node 24 matches.tool-versions.ca-certificates20260909-r0, so the build requiresca-certificates>=20261020-r0. Without it, wget, Pythonurlliband pip (which reads the system store) on the new base still accept the emSign ECC Root CA - G3 chain.Test plan
Connected to
https://dv-g3b-emudhra.we-have-a-problem.com/(emSign ECC Root CA - G3) andhttps://dv-g3b-aaa-emudhra.we-have-a-problem.com/(Comodo AAA cross-sign) from inside each image.https://emudhra.we-have-a-problem.com/served as a control that must succeed.https, npm, Pythonurllib, certifi, pip's vendored certifi andpip downloadall accepted both hosts.fetch,src(Go), uv (default and--native-tls) and Poetry's environment, reject both hosts. Every CA bundle in the image (system store plus 6cacert.pemcopies) rejects them too. The control succeeds with every client.pip install .thenscip-python index), in both images:index.scip.Side effects: the image grows from 716 MB to 1,007 MB uncompressed. The base also bundles uv, Poetry, Pipenv, pnpm and yarn.