← Back to Pull requests

Stop trusting compromised eMudhra roots in CI images #897

Closed
unknown closed this pull request without merging on Oct 28, 2026 11:16 UTC
View on GitHub
unknown unknown commented on Oct 23, 2026 17:33 UTC
Author

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 current ca-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 JDK cacerts.

  • .gitlab/base/Dockerfile.musl: upgrades ca-certificates, points awscli's botocore bundle at the system bundle, and deletes both roots from the JDK cacerts.

  • .gitlab/base/el7/Dockerfile: Oracle Linux 7 has no fixed ca-certificates package, 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 JDK cacerts.

  • .gitlab/base/el8/Dockerfile: dnf update ca-certificates + update-ca-trust extract, and both roots deleted from the JDK cacerts.
  • 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:

  • Datadog's GitLab runners only admit images from approved registries. The merge-queue pipelines for this PR were rejected for that reason: Docker Hub alpine:3.24.3 was denied by the third-party-registry admission 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.yml and the benchmark files are therefore back to main's version; this PR now only changes the base-image Dockerfiles.

  • Follow-ups (not in this PR):

  • - 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 in registry.ddbuild.io first, 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-ci via .gitlab/scripts/rebuild-images.sh, then update the pin); ci/async-profiler-build-amd64 / -arm64 benchmark 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 via Dockerfile.musl above) and almalinux:8@sha256:9f355ae942d6 (pins the shipped binaries' glibc 2.28 floor; AlmaLinux 9 and 10 also still trust the roots; patched via el8/Dockerfile above).
    - 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 in CTimerSamplerTest (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:

  • If this PR touches code that signs or publishes builds or packages, or handles

  • credentials of any kind, I've requested a security review (run the dd:platform-security-review
    skill, or file a request via the PSEC review form).
    bewaire also runs automatically on every PR.
  • This PR doesn't touch any of that.
  • 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.

  • JIRA: APPSEC-71294
  • Unsure? Have a question? Request a review!

    [APPSEC-71294]: https://datadoghq.atlassian.net/browse/APPSEC-71294?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

    Diff: 631 lines (+473 / -158) across 7 files Reviewer: eliottness Review duration: 6823m
    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
    0.50
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 50.4% (MEDIUM) · Higher = larger blast radius
    50.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.9% · Safe to merge
    19.9%