Repository navigation
Build the nodejs26.x runtime image from public sources - #2
Merged
Merged
Conversation
Add the Docker build of the nodejs24.x image, its smoke tests, and a workflow that builds and tests the arm64 image on the CodeBuild-hosted runner for pull requests to main and on manual dispatch.
On a push the workflow assumes the ECR role through the deploy environment's OIDC token and pushes the image tagged <commit>-arm64. The working branch is in the push trigger for now so that the push can be tested before the merge to main.
svozza
marked this pull request as draft
November 11, 2026 00:18
Pin Node 26.13.0 and take the bootstrap, TLS profiles, root certificate and globals locks, and SDK package versions from the managed nodejs26.x image. The TLS profile script and its profiles replace openssl.cnf. Node 26's configure needs Python 3.10 or later, so the builder installs python3.12. The IDEA test patch is rebased onto the Node 26 source.
Configure Node with Temporal support, which is built with Rust from the crates in the Node tarball, and build with Python 3.14. Take both Node patches as the managed build applies them to 26.13.0, and pin the durable SDK at 3.0.0.
The tests run through the Runtime Interface Emulator like the smoke tests. They cover the algorithms OpenSSL is built without, TLS defaults, hardening of the node binary and shipped libraries, file permissions, the FFI default, and TLS profile resolution. The workflow runs them after the smoke tests, before any push.
The comments in lang.env no longer record one-off signature checks; the build verifies each download against its pinned SHA-256.
The working branch no longer pushes images: the deploy environment allows only main.
CODEOWNERS makes svozza or maxday a required reviewer for every change, including the workflows, under the main branch ruleset. The workflow grants no permissions by default; the build job gets contents: read and id-token: write.
The runtime image is built with a mode=max SLSA provenance attestation. The ECR repository's tags are immutable, so the push step skips a commit whose tag is already published, and fails on any other describe-images error.
… is set The npm ci steps mount an optional npmrc build secret. When the NPM_REGISTRY repository variable names a CodeArtifact npm repository, the workflow gets a token for it as the runner's role and build.sh passes the npm config as that secret, so it is not stored in any layer. The lockfiles still pin every package by integrity.
The job becomes a matrix over the two architectures. Each runs on its architecture's CodeBuild runner project and is named build-<arch>, so the arm64 check keeps the name the main branch's ruleset requires.
This reverts commit 9f83ddb, which pushed images from the working branch for a test of the amd64 push.
These are the versions in the current managed nodejs26.x image. The patch that removes the TLS 1.3 external PSK block from test-tls-resume-servername is the one the managed runtime applies with 26.13.1: OpenSSL is built with no-psk, so that block cannot pass.
svozza
marked this pull request as ready for review
November 18, 2026 15:23
maxday
self-requested a review
November 19, 2026 16:20
maxday
approved these changes
Nov 19, 2026
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.
Summary
Adds the Docker build of the
nodejs26.xruntime image from public sources, its smoke and security tests, and a workflow that builds, tests and pushes the arm64 image. Replaces #1.amd64 is not part of this PR.
Evidence
mainhas only a README.After: the
Build runtime imageruns on this PR build the image and pass 5/5 smoke tests and 9/9 security tests (excluded algorithms, TLS defaults, binary hardening, file permissions, the FFI default, TLS profile resolution); the push run also pushes the image to ECR.Merge Danger
Door: two-way
Reverting the commits removes the build and the workflow. Images already pushed stay in the registry until deleted.
Blast Radius: small
Every push to
mainbuilds and pushes an image; every push to a pull request targetingmainbuilds and tests one. Each run takes about 45 minutes.🤖 Generated with Claude Code