Repository navigation
Conversation
Upgrade packages inherited from the Ubuntu 24.04 base image so fresh builds pick up security fixes on both amd64 and arm64. Fail the build if APT cannot refresh any package index.
Install OpenJDK 8 from Ubuntu on amd64. Pin the headless JDK and JRE to the same package version, use the JDK to build and unpack java-tron, and point JAVA_HOME at the retained JRE after purging the build tools. Pin the Ubuntu OpenJDK 17 headless JRE on arm64 and use its jdk.jartool module to unpack the distribution. Restore launcher permissions on both architectures and remove the tools used only during the build.
Show how to look up the available Ubuntu package versions for each architecture and test a replacement with the OPENJDK_VERSION build argument. Verify the runtime and FullNode before changing the default.
3for
force-pushed
the
feat/pin_jdk_version
branch
from
November 23, 2026 05:05
6743835 to
ac9ca18
Compare
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.
What does this PR do?
8u514-b01~us1-0ubuntu1~24.04.1. Build and unpack java-tron with the headless JDK, then remove it and pointJAVA_HOMEat the retained JRE.17.0.21.1+2-1~24.04.1. Use the headless JRE’s compiler andjdk.jartoolmodules to build and unpack java-tron, eliminating the 7-Zip dependency.Why are these changes required?
The previous builds refreshed the APT index but could retain older versions of
libc6,libpcre2-8-0, andaptfrom the base image. Upgrading installed packages during a fresh build picks up the available Ubuntu fixes.Using Ubuntu packages for Java also removes a separate download and verification path on amd64. The previous build used
curlto fetch a Temurin archive and its signature, then retrieved a signing key from a public keyserver and verified the archive with GPG. APT authenticates Ubuntu’s signed repository metadata and checks the downloaded packages against the hashes it contains. This reduces the build’s attack surface by removing those extra endpoints and verification steps. Ubuntu archive verificationThis PR has been tested by:
FullNode --versionon each. Verified the pinned JRE packages and confirmed both final images containlibc62.39-0ubuntu8.12,libpcre2-8-010.42-4ubuntu2.2, andapt2.8.4ubuntu0.1.bin/,lib/, andconfig.confhad the same SHA-256 hashes as in the previous 7-Zip build. FullNode also started with an empty database, created the genesis block, and started its API and P2P services.Follow up
We will track quarterly and out-of-cycle OpenJDK security advisories, Ubuntu Security Notices and
noble-securitypackage availability, and Eclipse Temurin releases for Java 8 on Linux amd64 and Java 17 on Linux arm64. If an upstream advisory or Temurin release precedes the Ubuntu package, we will check which fixes apply to our runtime and architecture and track the Ubuntu package until it is available. OpenJDK advisories · Ubuntu Security Notices · Temurin release policyWhen Ubuntu publishes a fixed package, test the full package version with
--build-arg OPENJDK_VERSION=..., verify Java and FullNode, then update the corresponding Dockerfile default and rebuild the image. The steps are indocker/docker.md.Extra details
Latest security update. Following the November 17, 2026 OpenJDK advisory, Temurin delivered the amd64 Java 8 runtime about 4 hours earlier, while Ubuntu delivered the arm64 Java 17 runtime about 47.5 hours earlier. The comparison uses the upload time of the architecture-specific Temurin JRE archive and the publication time of Ubuntu’s
jre-headlesspackage innoble-security. All times are UTC. November 17 OpenJDK advisory8u514-b01, amd6417.0.21.1+2, arm64mainand receives standard Canonical security maintenance. OpenJDK 8 is inuniverse, where standard coverage is community-supported. Ubuntu published the pinned8u514fix throughnoble-securitywithout requiring Ubuntu Pro. Delivery times for future updates may vary. Ubuntu security maintenance policy · Ubuntu OpenJDK 8 noticemasterbranch. For an exact rollback, retain the published image and redeploy it by digest.