Files
OmniRoute/scripts/ci/check-docker-node-runtime.mjs
Diego Rodrigues de Sa e Souza 191dce8d53 Release v3.8.53
Release v3.8.53 — 1,189 documented changes from 1,162 cycle commits and 208 contributor rows; full changelog in CHANGELOG.md → [3.8.53].

Merged by explicit owner decision at STOP #1 on head 6cc69650, without --admin (main has no required checks). Gate / CI passed on this head: 8 unit shards, Coverage and Quality Ratchet. Security: 0 npm, 0 CodeQL high, 0 Dependabot high.

Red at merge, accepted by the owner:
- Gate / Quality and Fast Quality Gates: complexity-ratchets and dead-code compare the whole cycle against main (11 dead exports; total complexity fell from 1,921 to 1,873). Cleanup follows in v3.8.54.
- dast-smoke: advisory.
- Release-Green: FAIL on `unit-6 no result` (cancelled at the 30-minute limit, cause not identified). Pack, boot and the other 64 commands passed on 7e640dee; there is no complete run on this head.

SonarQube is off (SONARQUBE_ENABLED=false). ⚠️ base-red inherited: #18791, #17267.
2026-11-06 04:21:00 -03:00

16 lines
734 B
JavaScript

// Execute inside the pushed image: NODE_VERSION metadata and a Dockerfile pin
// do not prove which Node binary the final runtime actually executes (#18414).
const version = process.versions.node;
const [major, minor, patch] = version.split(".").map(Number);
// Keep the security floor aligned with tests/unit/build/docker-ca-baseline.test.mjs.
// Node 26.12.1 includes the CVE-2026-111497 Brotli decoder fix.
if (major !== 26 || !(minor > 12 || (minor === 12 && patch >= 1))) {
console.error(
`Docker image runs Node ${version}; requires Node 26.12.1 or newer in the 26.x line (CVE-2026-111497).`
);
process.exit(1);
}
console.log(`Verified Docker runtime: Node ${version} (CVE-2026-111497 security floor satisfied).`);