Skip to content

Build the nodejs26.x runtime image from public sources - #2

Merged
svozza merged 18 commits into
mainfrom
svozza/runtime-image
Nov 19, 2026
Merged

svozza merged 18 commits into
mainfrom
svozza/runtime-image

Conversation

@svozza

@svozza svozza commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds the Docker build of the nodejs26.x runtime image from public sources, its smoke and security tests, and a workflow that builds, tests and pushes the arm64 image. Replaces #1.

.github/
├── CODEOWNERS                 # maintainer review for every change
├── dependabot.yml             # weekly updates for GitHub Actions
└── workflows/build-image.yml  # build, smoke-test, and push on pushes
Dockerfile                     # base → lang (GCC, OpenSSL, Node from source) → runtime → image
build.sh                       # runs the build
builder-images.env             # builder images, pinned by digest
base/                          # inputs shared by every runtime
runtimes/nodejs26.x/           # versions, patches, locks, SDK, RIC, durable SDK
test/                          # smoke and security tests through the Runtime Interface Emulator
build-arm64
  checkout
  use the containerd image store
  log in to the registry mirror  # vars.REGISTRY_MIRROR: base images through a pull-through cache
  configure the npm registry     # vars.NPM_REGISTRY: npm packages through a CodeArtifact repository
  ./build.sh 26 linux/arm64
  node test/run.mjs …            # smoke tests
  node test/run.mjs … test/security-cases.json   # security tests
  on push to main only:
    assume the ECR role (OIDC, deploy environment, maintainer approval)
    push the image, tagged <commit>-arm64; ECR signs it on push
  • Inputs are pinned: source tarballs by SHA-256, images by digest, npm packages by lockfile integrity.
  • The image carries a SLSA provenance attestation, and ECR tags are immutable.
  • Workflow permissions are granted per job, and every action is pinned by commit.

amd64 is not part of this PR.

Evidence

  • Before: main has only a README.
    After: the Build runtime image runs 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 main builds and pushes an image; every push to a pull request targeting main builds and tests one. Each run takes about 45 minutes.

🤖 Generated with Claude Code

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
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.
@svozza svozza changed the title Build the nodejs24.x runtime image from public sources Build the nodejs26.x runtime image from public sources Nov 11, 2026
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
svozza marked this pull request as ready for review November 18, 2026 15:23
@maxday
maxday self-requested a review November 19, 2026 16:20
@svozza
svozza merged commit 2cfc6dc into main Nov 19, 2026
4 checks passed
@maxday
maxday deleted the svozza/runtime-image branch November 19, 2026 23:02
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