Repository navigation
Conversation
…ive image trust store native-image embeds the build JDK's cacerts. GraalVM 22.3.0 ships a 2022-era store that still trusts AAA Certificate Services. Move to GraalVM 25 and remove the root from the build JDK's cacerts before building, until a GraalVM with JDK >= 25.0.5 is available.
Up to standards ✅🟢 Issues
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The native binary embeds the build JDK's default
cacertsat build time. GraalVM 22.3.0 (JDK 17.0.5) ships a store that still trusts AAA Certificate Services, and the binary never reads system certs, so the Alpine base image doesn't help.What
nativeImageJvm := graalvm-java25,nativeImageVersion := 25.0.2(latest GraalVM Community in the Coursier index; still below the patched 25.0.5)stripDistrustedCertssbt task, run beforenativeImage, usesgraalvm/strip-aaa-cacerts.shto remove the root from the GraalVM home'scacertsPassing
-Djavax.net.ssl.trustStoreto native-image at build time was tried and has no effect on the embedded store.Verified locally (macOS arm64)
sbt nativeImagebuilds on GraalVM 25 with existing flags (deprecation warnings only)AAA Certificate Servicesstrings (22.3.0-style build had them)Not verified
Linux musl / ARM builds, CircleCI pipeline. This PR is to see what CI does.
Follow-up
Once a GraalVM >= 25.0.5 is resolvable, drop the strip task and script. Release,
get.shlatest pointer and orb bump still needed.