fix(docker): Drop the compromised eMudhra root from the image #90

Merged
sharang merged 1 commits from fix/emudhra-ca-store into main 2026-10-21 16:00:21 +00:00
Owner
  • Build stage: apk upgrade ca-certificates-bundle ca-certificates, the guard, and a Go ≥ 1.26.10 check (CVE-2026-111943, Go's own distrust of these intermediates; golang:1.26-alpine is at 1.26.10).
  • Final image (distroless static): gets the build stage's clean bundle. Distroless itself still ships the root.
  • Affects every binary in the image: tenant-registry, migrate, erpsetup, erpmock, and invoiceintake (the invoice intake on the ERP host).

Track B of the eMudhra CA response (Mozilla bug 2083449). Every base image we use still shipped emSign ECC Root CA - G3. The host-bundle mount on prod/stage (orca-platform #116–#119) covers it at runtime; this fixes the image itself.

The build fails if the bundle still contains the root. The grep pattern is a line of that certificate, checked against old and new bundles. This also keeps CI from reusing a cached layer with the old store.

The guard lines were tested against the real base images; the image itself was not built locally, so CI checks that.

🤖 Generated with Claude Code

- **Build stage:** `apk upgrade ca-certificates-bundle ca-certificates`, the guard, and a **Go ≥ 1.26.10** check (CVE-2026-111943, Go's own distrust of these intermediates; `golang:1.26-alpine` is at 1.26.10). - **Final image (distroless static):** gets the build stage's clean bundle. Distroless itself still ships the root. - Affects every binary in the image: tenant-registry, migrate, erpsetup, erpmock, and **invoiceintake** (the invoice intake on the ERP host). Track B of the eMudhra CA response ([Mozilla bug 2083449](https://bugzilla.mozilla.org/show_bug.cgi?id=2083449)). Every base image we use still shipped **emSign ECC Root CA - G3**. The host-bundle mount on prod/stage (orca-platform #116–#119) covers it at runtime; this fixes the image itself. The build **fails** if the bundle still contains the root. The grep pattern is a line of that certificate, checked against old and new bundles. This also keeps CI from reusing a cached layer with the old store. The guard lines were tested against the real base images; the image itself was not built locally, so CI checks that. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
sharang added 1 commit 2026-10-21 15:12:39 +00:00
fix(docker): Drop the compromised eMudhra root from the image
ci / shared (pull_request) Successful in 15s
ci / test (pull_request) Successful in 25m50s
ci / image (pull_request) Skipped
37e302925a
Build stage: upgrade Alpine ca-certificates(-bundle), fail if emSign ECC Root CA - G3 is still in the bundle, and require Go >= 1.26.10 (CVE-2026-111943, Go's own distrust). The distroless final image gets the build stage's clean bundle; distroless still ships the root.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sharang merged commit 208f3d4c7e into main 2026-10-21 16:00:21 +00:00
Sign in to join this conversation.