Stop trusting compromised eMudhra roots in CI images #897
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 631 lines diff across 7 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.386
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #897"
general
weight: 0.35
eliottness
What does this PR do?:
Stops this repository's CI images from trusting emSign ECC Root CA - G3 and AAA Certificate Services, the roots behind the compromised eMudhra intermediates (incident IR-62343). The APPSEC-71273 ledger lists 16 impacted image references here; images CI never builds or pulls are left alone.
.gitlab/base/Dockerfile(Debian base images): installs currentca-certificates, points awscli's botocore bundle at the system bundle, replaces Debian's packaged Node (which embeds the old roots) with the checksum-verified upstream Node 22.23.4 archive, and deletes both roots from the SDKMAN JDKcacerts..gitlab/base/Dockerfile.musl: upgradesca-certificates, points awscli's botocore bundle at the system bundle, and deletes both roots from the JDKcacerts..gitlab/base/el7/Dockerfile: Oracle Linux 7 has no fixedca-certificatespackage, so both roots are removed from the p11-kit trust source (every other object and its purpose restrictions are kept) and the trust store is re-extracted; both roots are also deleted from the JDKcacerts..gitlab/base/el8/Dockerfile:dnf update ca-certificates+update-ca-trust extract, and both roots deleted from the JDKcacerts.The base-image Dockerfile changes take effect when REBUILD_IMAGES republishes the async-profiler-build images and the pinned digests are updated (7 references are fixed this way).
Motivation:
Incident IR-62343: CI images that trust these two roots keep the exposure from the compromised eMudhra intermediates. Jira APPSEC-71294 (parent APPSEC-71273).
Additional Notes:
alpine:3.24.3was denied by thethird-party-registryadmission policy (job 2174477532), and the reliability child pipeline failed because its skip job had also moved to Docker Hub alpine..gitlab-ci.yml,.gitlab/build-deploy/.gitlab-ci.ymland the benchmark files are therefore back to main's version; this PR now only changes the base-image Dockerfiles.- Default CI image
alpine:3.22.1(.gitlab-ci.yml,.gitlab/build-deploy/.gitlab-ci.yml): moving to Alpine 3.24 needs a mirrored alpine 3.24 image inregistry.ddbuild.iofirst, because the runners reject Docker Hub images.- Needs a rebuild at source:
benchmarking-platform-tools-ubuntu:newest(DataDog/images; newest and latest still resolve to the bad digest 1e27d877);ci/async-profiler-build:v137281788-datadog-ci(rebuild.gitlab/Dockerfile.datadog-civia.gitlab/scripts/rebuild-images.sh, then update the pin);ci/async-profiler-build-amd64/-arm64benchmark images (rebuild.gitlab/benchmarks/docker/Dockerfile, then update the pins);slack-notifier:v91289620-4ec922a-latest(DataDog/slack-notifier; latest is the same bad digest 06b24f39).- Upstream bases with no clean version in line:
eclipse-temurin:21-jdk-alpine@sha256:c98f0d2e171c(JDK 21 is pinned on purpose; the current digest still trusts the roots, patched viaDockerfile.muslabove) andalmalinux:8@sha256:9f355ae942d6(pins the shipped binaries' glibc 2.28 floor; AlmaLinux 9 and 10 also still trust the roots; patched viael8/Dockerfileabove).- Unscannable:
486234852809.dkr.ecr.us-east-1.amazonaws.com/images/docker:24.0.4-gbi-focal(pull access denied: no basic auth credentials for that ECR registry).How to test the change?:
Every new image reference and every changed Dockerfile was pulled or built and scanned with the eMudhra scanner, which checks every file in the image for the two roots' public keys; all returned empty hits. GitHub CI is not fully green on 44cbb26:
test-linux-glibc-amd64 (8-ibm, debug, regular)was cancelled at its 180-minute timeout after hanging inCTimerSamplerTest(cstack=dwarf), run 40387577386. The same commit passed that job on earlier runs, and the GitHub workflows do not read the Dockerfiles this PR changes. The GitLab jobs that build the base images run in the merge-queue pipeline and on REBUILD_IMAGES.For Datadog employees:
credentials of any kind, I've requested a security review (run the
dd:platform-security-reviewskill, or file a request via the PSEC review form).
bewairealso runs automatically on every PR.Note for the owner: this PR changes the base images used to build the shipped binaries, so it touches the publishing pipeline; no PSEC review has been requested yet.
Unsure? Have a question? Request a review!
[APPSEC-71294]: https://datadoghq.atlassian.net/browse/APPSEC-71294?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ