CI obtains its database fixtures from their canonical registry references with
the same immutable digests. Its Node builds use
scripts/ci-container-base-contexts.mjs to select the registered discovery
reference for each governed alias. Both sides retain the identical digest.
Dockerfile defaults and release builds keep their existing references. This
separates CI transport from image identity when a mirror refuses anonymous pulls.
It does not change versions, platform, vulnerability gates or runtime assertions.
The helper emits BuildKit named contexts for the shell, or an Actions output with
--github-output. Docker documents this override mechanism.
Base updates still require resolving every governed reference to the same
multi-platform digest before merge.
The infrastructure images are deployable artifacts, so their build inputs, review gates, provenance, and rollback identity are part of the public release contract. The controls here do not create another service. They make the existing eight images auditable and ensure the artifact reviewed by CI is the artifact that reaches a registry.
governance/container-images.json is the complete release inventory. It owns:
linux/amd64 platform;Apache-2.0 license, documentation metadata, and the stable
incorporated-material notice path; andscripts/container-supply-chain.test.mjs, run by pnpm health:check, rejects
unregistered Dockerfiles, mutable bases, apk upgrade, uncommitted lockfile
resolution, incomplete OCI metadata, unpinned deployment examples, and loss of
the scan, attestation, signature, Docker Dependabot, or Scorecard controls.
governance/Dockerfile.container-bases is dependency-discovery metadata, not a
build context. Its canonical Docker Hub tag lets Dependabot discover Node
releases while its digest lets Scorecard verify pinning. The inventory's
discoveryReference records that single automation source; equivalent runtime
registry mirrors remain in references and must be resolved and compared
during review. This avoids making routine dependency discovery depend on public
ECR's unauthenticated rate limits without weakening multi-registry verification.
Runtime Dockerfile defaults use Docker's official
public.ecr.aws/docker/library/node mirror at the identical governed digest;
CI selects the canonical discovery reference through the named contexts above.
CI's Postgres, MySQL and Mongo service images use canonical Docker Hub references
at their existing immutable digests. Review
must verify the index bytes and selected Linux/amd64 manifest and configuration
against those identities; a registry route change does not authorize an image
upgrade. Docker Hub remains the dependency-discovery source. Registry transport
and availability must be assessed separately from image identity, without adding
credentials or changing service health checks, budgets, platforms or
release/deployment behavior.
MongoDB-dependent qualification jobs use ubuntu-22.04 with their governed
image/binary pins and all Linux/amd64 checks. Main PR #1259 changes only the
container-runtime service fixture to MongoDB 7.0.45; native package fixtures
retain their original pinned binaries. These are the container runtime
contract, package artifacts (including optional native diagnostics), ordinary and
dependent tests, browser packages, other-package coverage and mutation execution.
The October 18, 2026
Ubuntu 24.04 runner image
moved to kernel 7.0.0-1017-azure, where the pinned MongoDB 8.0 native
build refuses startup. MongoDB tracks the allocator incompatibility in
SERVER-121912 and the required
Ubuntu-specific kernel recognition in
SERVER-131779, fixed in 8.0.35.
The current Ubuntu 22.04 runner image
uses kernel 6.8.0-1064-azure, outside the affected
range. Return these jobs to Ubuntu 24.04 after reviewed, pinned MongoDB updates
with that fix pass their complete native/runtime contracts on the actual kernel.
This selects a compatible CI host; it changes no deployed database, image,
health check, case, timeout or availability gate.
The package-artifact lane allows 25 minutes for its complete existing workload. On October 19, 2026, the 20-minute attempt completed all three optional native/property diagnostics (14m01), compiled examples, packed consumers (5m08), and the npm artifact dry run, then exceeded the outer limit during cleanup at 20m41. The extra five minutes cover orchestration and normal variance; every test, seed, assertion, intrinsic deadline, mutation threshold, CPU/heap/concurrency setting and required merge-gate dependency is retained.
Repository health requires the discovery tag and digest, the registry's
expected version and digest, and every digest-only release FROM instruction
to reconcile in one change. Runtime Dockerfiles deliberately omit the tag
because Docker uses the digest as the actual identity. They are excluded from
the deployment-image Dependabot scan so its Docker updater cannot reinterpret
bare digest-only Node references as latest; the versioned governance manifest
is the single Node discovery source, while deployment images and database
versions remain monitored.
Automatic Sonar analysis excludes only the non-build metadata file because its
rule rejects tag-and-digest syntax; the executable zero-install repository check
remains authoritative for it.
When a governed immutable base still contains a fixed vulnerability,
runtimePackagePins records the exact replacement package, version, and CVE.
Repository health requires every final runtime stage to install every active
pin. A base refresh that incorporates the fix must remove the obsolete runtime
pins and their Dockerfile installs together.
The September 30, 2026 source refresh advances libcrypto3 and libssl3 to
3.5.9-r0 across all seven images. Alpine replaced the previously pinned
3.5.8-r0 packages in its rolling stable repository, causing exact-version
installs to fail. The reviewed OpenSSL 3.5.9 security release
retains the earlier CVE-2026-14456 fix and adds the September security fixes,
including CVE-2026-84782. The official Alpine v3.24 x86_64 package index
retrieved at review names both packages at 3.5.9-r0 from aports commit
29b9ec24b1b5b39aeef51fa2a044210e2ec5258e; libssl3 requires that exact
libcrypto3 version. Both retain their .so.3 ABI. This patch changes neither
the immutable Node base nor service APIs, configuration or persistence.
All seven Linux/amd64 build, scan and runtime gates must validate the source
candidate; this record does not claim a publication or deployment. A deployed
rollback uses a previously verified complete image digest; it must not restore
the vulnerable base libraries by removing the pins.
wallet-infra is the only image that installs nginx, so its pin lives in that
Dockerfile rather than in the base-wide runtimePackagePins. It installs
nginx=1.30.7-r0 from Alpine v3.24 main, which fixes the HTTP/2 RCEs
CVE-2026-123633 and CVE-2026-123007, and its nginx.conf sets http2 off on
the cleartext 8080 listener so the image never accepts h2c. A base refresh to a
newer Alpine branch must update the nginx pin to that branch's fixed build.
Package locks under infra/**/package-lock.json are committed release inputs.
Release workflows never rewrite them. A stale or inconsistent lock therefore
fails npm ci before publication instead of silently producing a different
dependency graph.
Every final image contains LICENSE, THIRD_PARTY_NOTICES.md, and the
complete incorporated-material archive at /usr/share/licenses/ts-stack.
org.bsvblockchain.license.notice identifies the notice path without
misrepresenting the first-party OCI license label as the only terms in the
image. Production dependency licenses remain in installed packages and in the
generated SPDX SBOM.
The infrastructure CI matrix builds and scans only images whose build contexts changed. Shared image-governance or runtime-contract changes expand to every registered consumer, while application packages and CI orchestration alone do not build unrelated images. GitHub's Linux/amd64 runners scan every selected image with Trivy. Any high or critical OS or library vulnerability, including one without an upstream fix, blocks the merge. A finding must be fixed or entered in the repository's time-bounded exception registry with an owner, evidence, review date, and objective removal condition.
Dependency-discovery references and deployment examples use a readable version
tag plus a content digest; runtime Dockerfile bases use the digest tied to the
registry's expected version. Dependabot proposes reviewed Docker refreshes alongside the
monthly stack-maintenance change. OpenSSF Scorecard runs on main, weekly, and
when repository rules change; its SARIF is retained for 90 days and uploaded to
GitHub code scanning.
.github/workflows/infra-release.yaml accepts an infra/v* tag reachable from
main, a manual dispatch from main, or a workflow_call from the cascade
npm release in release.yaml. A standalone run qualifies its own exact source
with the full mutation campaign. A release.yaml call reuses that run's
campaign for github.sha and builds from either github.sha or the single
generated infra-sync commit whose parent is github.sha; that commit may change
only infra/*/package.json, infra/*/package-lock.json,
packages/*/package.json, pnpm-lock.yaml, and the generated stack facts.
Images built from it carry that commit as their OCI revision. For every version
not already present in GHCR it:
Steps 2–4 run in a build-image job without publishing permissions while the
mutation campaign qualifies the source. It hands the saved image, its tags,
image ID and SBOM to the release job as a same-run artifact; release starts
only after qualification, loads the image, refuses to publish unless every tag
resolves to the reviewed image ID, and then performs steps 5–8. A component
whose build or scan fails has no image to publish and blocks only itself.
Concurrent releases are serialized and never cancelled midway. Existing version tags are treated as immutable and skipped rather than overwritten.
For a released digest, verify the evidence from an authenticated environment:
image_ref='ghcr.io/bsv-blockchain/overlay-server@sha256:<digest>'
docker buildx imagetools inspect "$image_ref"
cosign verify \
--certificate-identity-regexp \
'^https://github\.com/bsv-blockchain/ts-stack/\.github/workflows/infra-release\.yaml@refs/(tags/(infra/v.+|release/v.+|v.+)|heads/main)#x27; \
--certificate-oidc-issuer 'https://token.actions.githubusercontent.com' \
"$image_ref"
gh attestation verify "oci://$image_ref" \
--repo bsv-blockchain/ts-stack \
--signer-workflow bsv-blockchain/ts-stack/.github/workflows/infra-release.yaml
gh attestation verify "oci://$image_ref" \
--repo bsv-blockchain/ts-stack \
--signer-workflow bsv-blockchain/ts-stack/.github/workflows/infra-release.yaml \
--predicate-type 'https://spdx.dev/Document/v2.3'WAB's Marketplace workflow applies the same trusted-source, single-build, Trivy, SPDX, digest, and attestation gates before registering a new immutable Marketplace version. GitHub stores keyless SLSA and SPDX attestations against the exact Marketplace ECR digest. It does not assume that the Marketplace-controlled repository permits auxiliary Cosign OCI manifests. The workflow verifies both attestations while still authenticated to ECR, then submits the catalog change and waits for a terminal success state.
For a base-image refresh:
governance/Dockerfile.container-bases;governance/container-images.json#baseImages[].references;governance/container-images.json and every matching digest-only
FROM line in one PR;Roll back a deployment by selecting a previously verified image digest, not by moving or reusing a release tag. Retain the failing digest and workflow URL in the incident or tracking issue so the transition remains auditable. Never delete or overwrite a published version merely to make a rollback appear current.
The normal path is GitHub CI on Linux/amd64. Maintainers on macOS should not build or publish cluster images locally. An emergency manual image requires a traceable tag, source commit, immediate upstream reconciliation, and recorded operational evidence.