fix(docker): drop the eMudhra keytool step that breaks image builds #344

Merged
ullrich merged 1 commit from docker-drop-emudhra-keytool into main 2026-11-15 23:41:18 +00:00
Owner

Summary

The BRouter + Photon image build (cd-brouter.yml) has failed on every run since 2026-11-02, including the weekly rebuild that exists to pick up Ubuntu security fixes:

keytool error: java.lang.Exception: Alias <cn_emsign_ecc_root_ca__g3,o_emudhra_technologies_limited,ou_emsign_pki,c_in [jdk]> does not exist

Both Dockerfiles deleted the compromised eMudhra root from the JDK truststore (47ed917), with a comment to drop the step once the base image is on Temurin 25.0.5+, which removes the root itself. That has happened, so the delete now fails. This PR removes the step from docker/brouter/Dockerfile and docker/photon/Dockerfile.

Relevant to #168: nine of the container findings there (apt, glibc, pcre2, perl, ca-certificates in brouter and photon) are marked "rebuild installs …" and stay open only because no rebuild succeeds.

Verification

  • Base image version, read from the Docker Hub registry config: the digest used by the failed run (sha256:659b528c…, built 2026-10-29) and the current 25-jre-jammy tag (built 2026-11-11) both report JAVA_VERSION=jdk-25.0.5+8.
  • Not verified: the image build itself. No Docker daemon was available locally, so the first cd-brouter.yml run after merge is the test. I also did not list the truststore of the new base image; that the root is gone rests on the failing keytool -delete and the Temurin version.
  • Not run: pnpm typecheck, lint, test, test:e2e. No application code changes.

Risk and rollback

  • Merging triggers cd-brouter.yml (path filter docker/**), which builds both images and deploys them to the BRouter host. Expect the BRouter and Photon containers to be recreated with the patched OS packages.
  • Revert the commit to roll back; the build then fails again as it does today, and the host keeps its current images.

🤖 Generated with Claude Code

## Summary The BRouter + Photon image build (`cd-brouter.yml`) has failed on every run since 2026-11-02, including the weekly rebuild that exists to pick up Ubuntu security fixes: ``` keytool error: java.lang.Exception: Alias <cn_emsign_ecc_root_ca__g3,o_emudhra_technologies_limited,ou_emsign_pki,c_in [jdk]> does not exist ``` Both Dockerfiles deleted the compromised eMudhra root from the JDK truststore (47ed917), with a comment to drop the step once the base image is on Temurin 25.0.5+, which removes the root itself. That has happened, so the delete now fails. This PR removes the step from `docker/brouter/Dockerfile` and `docker/photon/Dockerfile`. Relevant to #168: nine of the container findings there (`apt`, `glibc`, `pcre2`, `perl`, `ca-certificates` in `brouter` and `photon`) are marked "rebuild installs …" and stay open only because no rebuild succeeds. ## Verification - Base image version, read from the Docker Hub registry config: the digest used by the failed run (`sha256:659b528c…`, built 2026-10-29) and the current `25-jre-jammy` tag (built 2026-11-11) both report `JAVA_VERSION=jdk-25.0.5+8`. - Not verified: the image build itself. No Docker daemon was available locally, so the first `cd-brouter.yml` run after merge is the test. I also did not list the truststore of the new base image; that the root is gone rests on the failing `keytool -delete` and the Temurin version. - Not run: `pnpm typecheck`, `lint`, `test`, `test:e2e`. No application code changes. ## Risk and rollback - Merging triggers `cd-brouter.yml` (path filter `docker/**`), which builds both images and deploys them to the BRouter host. Expect the BRouter and Photon containers to be recreated with the patched OS packages. - Revert the commit to roll back; the build then fails again as it does today, and the host keeps its current images. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(docker): drop the eMudhra keytool step that breaks image builds
Some checks failed
CI / Security Scan (pull_request) Successful in 9s
CI / Dockerfile Package Check (pull_request) Successful in 13s
CI / Checks (pull_request) Successful in 41s
CI / Visual Tests (pull_request) Successful in 35s
CI / E2E Tests (pull_request) Has been cancelled
Cancel superseded CI / Cancel in-flight CI (pull_request) Successful in 4s
CI / Journal Image Smoke Test (pull_request) Has been cancelled
0d327d5256
Both Dockerfiles deleted the eMudhra root from the JDK truststore, with
a note to drop the step once the base image is on Temurin 25.0.5+,
which removes the root itself. eclipse-temurin:25-jre-jammy is now on
jdk-25.0.5+8, the alias no longer exists, and `keytool -delete` fails
the build. The BRouter + Photon image build has failed since
2026-11-02, including the weekly rebuild that picks up Ubuntu security
fixes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ullrich deleted branch docker-drop-emudhra-keytool 2026-11-15 23:41:18 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
trails-cool/trails!344
No description provided.