Skip to content

fix(security): block disclosed eMudhra chains in JVM connector and CLI images - #102

Closed
imperfect-fourth wants to merge 3 commits into
mainfrom
fix/emudhra-jvm-distrust
Closed

imperfect-fourth wants to merge 3 commits into
mainfrom
fix/emudhra-jvm-distrust

Conversation

@imperfect-fourth

@imperfect-fourth imperfect-fourth commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Mitigates the eMudhra distrust for all ndc-jvm-* connector images and ndc-jvm-cli.

  • Bumps both build stages from registry.access.redhat.com/ubi9/openjdk-21:1.23 to :1.24 (floating, latest 1.24.x). 1.24 ships ca-certificates 2026.2.92, which removes emSign ECC Root CA - C3/G3 and emSign Root CA - C1.
  • emSign Root CA - G1 is still a trusted server-auth anchor in 1.24, so the final stage exports it into /etc/pki/ca-trust/source/blocklist/ and runs update-ca-trust extract (the JDK cacerts is a symlink to /etc/pki/java/cacerts, so OS and JVM are both covered). The build asserts G1 is absent from the JVM store.
  • The block is a no-op once RHEL removes G1 upstream and can then be deleted.

Not released: needs new <db>/v* tags and redeploys to reach running connectors.

1.24 ships ca-certificates 2026.2.92, which already removes the other emSign roots.
Replace the 16-fingerprint blocked.certs list with an OS-level blocklist of the remaining
G1 anchor (update-ca-trust regenerates the JVM cacerts). No-op once RHEL drops G1.
@imperfect-fourth
imperfect-fourth marked this pull request as ready for review October 26, 2026 10:39
manasag added a commit that referenced this pull request Nov 18, 2026
…1 blocklist

Red Hat has not yet shipped a fixed java-21-openjdk for UBI 9 (RHSB-2026-018), so the
snowflake, mysql, oracle, trino and CLI images keep the ubi9/openjdk-21 1.24 bases and set
JDK_JAVA_OPTIONS=-XX:-UseBASE64Intrinsics, Red Hat's documented temporary workaround. This
is a mitigation, not a fixed JDK; remove it once a fixed RPM is in the base image.

Also ports #102's emSign Root CA - G1 trust-store blocklist, builds the arch-independent
Gradle stage on the build platform, and stops the NDC tests workflow re-installing the
MySQL client (the runner already has it; the reinstall broke on a mysql-server postinst).

Copy link
Copy Markdown
Member

Superseded by #103 (merged in 7606ff9). Closing this.

#103 carries this PR's emSign Root CA - G1 blocklist in the runtime stage of the snowflake, mysql, oracle and trino connector dockerfiles and ndc-cli.dockerfile: export to /etc/pki/ca-trust/source/blocklist/, update-ca-trust extract, and a build-time assertion that G1 is gone. Those runtimes are now ubi9/ubi-minimal:9.9 with java-21-openjdk-headless and ca-certificates 2026.2.92, so the C1/C3/G3 removals from the 1.24 bump are included too. The build stage is ubi9/openjdk-21:1.24.

Not covered by #103: ndc-connector-phoenix.dockerfile is unchanged on main and still uses ubi9/openjdk-21:1.23 for both stages with no G1 blocklist. The fix/emudhra-jvm-distrust branch is left in place in case the Phoenix part is wanted later.

As noted here, none of this reaches running connectors until new <db>/v* tags are cut and redeployed.

@GavinRay97 GavinRay97 closed this Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants