🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore(deps): bump node to 24.22.1 (#19339)
Nimarf6c3660ced73
diff --git a/.nvmrc b/.nvmrcindex 0f60905941..474d750b50 100644--- a/.nvmrc+++ b/.nvmrc@@ -1 +1 @@-v24.20.0+v24.22.1diff --git a/web/Dockerfile b/web/Dockerfileindex b4d0decd7e..72a4dd3ef7 100644--- a/web/Dockerfile+++ b/web/Dockerfile@@ -4,6 +4,7 @@# FIPS provider (/usr/lib64/ossl-modules/fips.so). Upstream node images# statically bundle their own non-validated OpenSSL and bypass the platform# module entirely.+# Cloud override: upstream Node 24.22.1 supplies full ICU and non-FIPS OpenSSL.# The defaults are Red Hat's public UBI9 images, so the build needs no# credentials. Iron Bank serves the same content from an authenticated registry# with DoD provenance and scan attestations. Release builds opt in by overriding@@ -14,6 +15,8 @@ARG BASE_IMAGE=registry.access.redhat.com/ubi9/ubi:9.8ARG MICRO_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-micro:9.8+FROM node:24.22.1-bookworm-slim@sha256:55fb5f5a527ea2c5c4a95f963e48ef90aa38c7b346054fdc8ee9957a2b55d205 AS node+FROM --platform=${TARGETPLATFORM:-linux/amd64} ${BASE_IMAGE} AS base# nodejs:24 and openssl (incl. the FIPS provider) come from the freely@@ -22,9 +25,16 @@ FROM --platform=${TARGETPLATFORM:-linux/amd64} ${BASE_IMAGE} AS base# segfaults in Intl.Segmenter (used e.g. by the prisma CLI's output# formatting) without the full ICU data.RUN dnf -y upgrade && \- dnf -y module enable nodejs:24 && \- dnf -y install --setopt=install_weak_deps=0 nodejs npm nodejs-full-i18n && \+ dnf -y install --setopt=install_weak_deps=0 \+ libstdc++ openssl-libs openssl-fips-provider openssl-fips-provider-so && \dnf clean all+COPY --from=node /usr/local/bin/node /usr/bin/node+COPY --from=node /usr/local/lib/node_modules/npm /usr/lib/node_modules/npm+COPY --from=node /usr/local/include/node /usr/include/node+RUN ln -s ../lib/node_modules/npm/bin/npm-cli.js /usr/bin/npm && \+ ln -s ../lib/node_modules/npm/bin/npx-cli.js /usr/bin/npx+ENV NODE_OPTIONS=--use-openssl-ca \+ SSL_CERT_FILE=/etc/pki/tls/certs/ca-bundle.crtFROM --platform=${TARGETPLATFORM:-linux/amd64} base AS build-base# Pin turbo to avoid nondeterministic prune output from future patch releases.@@ -50,21 +60,18 @@ ARG GID=1001# http://127.0.0.1:<port>/...` in ECS task definitions); it links GnuTLS,# which follows the host's FIPS mode like OpenSSL does.RUN dnf -y --installroot /mnt/rootfs --releasever 9 --setopt=install_weak_deps=0 \+ --setopt=tsflags=nodocs \--disableexcludes=all \- module enable nodejs:24 && \- dnf -y --installroot /mnt/rootfs --releasever 9 \- --setopt=install_weak_deps=0 --setopt=tsflags=nodocs \- --disableexcludes=all \- install nodejs nodejs-full-i18n bash coreutils-single sed \+ install libstdc++ openssl-libs openssl-fips-provider openssl-fips-provider-so \+ bash coreutils-single sed \tzdata ca-certificates crypto-policies wget && \dnf --installroot /mnt/rootfs clean all && \rm -rf /mnt/rootfs/var/cache /mnt/rootfs/var/log/dnf*# The nodejs RPM drags npm in as a dependency; the runtime image must carry# no package manager, so remove it from the rootfs (rpmdb stays consistent).-RUN if rpm --root /mnt/rootfs -q npm >/dev/null 2>&1; then \- rpm --root /mnt/rootfs -e --nodeps npm; \- fi+COPY --from=node /usr/local/bin/node /mnt/rootfs/usr/bin/node+COPY --from=node /usr/local/LICENSE /mnt/rootfs/usr/share/licenses/nodejs/LICENSE# The FIPS crypto policy for OpenSSL ships as an opt-in config instead of# being activated system-wide, so installs without FIPS mode keep the default@@ -239,7 +246,7 @@ ENV NEXT_MANUAL_SIG_HANDLE true# set the CI flag to true to get CI specific logsENV CI true-RUN NODE_OPTIONS='--max-old-space-size-percentage=75' turbo run build --filter=web...+RUN NODE_OPTIONS="${NODE_OPTIONS} --max-old-space-size-percentage=75" turbo run build --filter=web...# Production image, copy all the files and run nextFROM --platform=${TARGETPLATFORM:-linux/amd64} runtime-base AS runnerdiff --git a/web/entrypoint.sh b/web/entrypoint.shindex e2a3204b74..9a29187c0b 100644--- a/web/entrypoint.sh+++ b/web/entrypoint.sh@@ -1,5 +1,9 @@#!/bin/sh+# Preserve system CA trust and deployment-provided Node options.+export NODE_OPTIONS="${NODE_OPTIONS:+$NODE_OPTIONS }--use-openssl-ca"+export SSL_CERT_FILE="${SSL_CERT_FILE:-/etc/pki/tls/certs/ca-bundle.crt}"+# Fail closed when FIPS mode is required but the OpenSSL FIPS provider is not# active for Node (e.g. a host without FIPS mode, or an image rebuilt on a# non-FIPS base). This runs before the migrations below open databasediff --git a/worker/Dockerfile b/worker/Dockerfileindex 302604e7ac..245858ea8b 100644--- a/worker/Dockerfile+++ b/worker/Dockerfile@@ -4,6 +4,7 @@# FIPS provider (/usr/lib64/ossl-modules/fips.so). Upstream node images# statically bundle their own non-validated OpenSSL and bypass the platform# module entirely.+# Cloud override: upstream Node 24.22.1 supplies full ICU and non-FIPS OpenSSL.# The defaults are Red Hat's public UBI9 images, so the build needs no# credentials. Iron Bank serves the same content from an authenticated registry# with DoD provenance and scan attestations. Release builds opt in by overriding@@ -14,6 +15,8 @@ARG BASE_IMAGE=registry.access.redhat.com/ubi9/ubi:9.8ARG MICRO_BASE_IMAGE=registry.access.redhat.com/ubi9/ubi-micro:9.8+FROM node:24.22.1-bookworm-slim@sha256:55fb5f5a527ea2c5c4a95f963e48ef90aa38c7b346054fdc8ee9957a2b55d205 AS node+FROM --platform=${TARGETPLATFORM:-linux/amd64} ${BASE_IMAGE} AS base# nodejs:24 and openssl (incl. the FIPS provider) come from the freely@@ -22,9 +25,16 @@ FROM --platform=${TARGETPLATFORM:-linux/amd64} ${BASE_IMAGE} AS base# segfaults in Intl.Segmenter (used e.g. by the prisma CLI's output# formatting) without the full ICU data.RUN dnf -y upgrade && \- dnf -y module enable nodejs:24 && \- dnf -y install --setopt=install_weak_deps=0 nodejs npm nodejs-full-i18n && \+ dnf -y install --setopt=install_weak_deps=0 \+ libstdc++ openssl-libs openssl-fips-provider openssl-fips-provider-so && \dnf clean all+COPY --from=node /usr/local/bin/node /usr/bin/node+COPY --from=node /usr/local/lib/node_modules/npm /usr/lib/node_modules/npm+COPY --from=node /usr/local/include/node /usr/include/node+RUN ln -s ../lib/node_modules/npm/bin/npm-cli.js /usr/bin/npm && \+ ln -s ../lib/node_modules/npm/bin/npx-cli.js /usr/bin/npx+ENV NODE_OPTIONS=--use-openssl-ca \+ SSL_CERT_FILE=/etc/pki/tls/certs/ca-bundle.crtFROM --platform=${TARGETPLATFORM:-linux/amd64} base AS build-base# Pin turbo to avoid nondeterministic prune output from future patch releases.@@ -50,21 +60,18 @@ ARG GID=1001# http://127.0.0.1:<port>/...` in ECS task definitions); it links GnuTLS,# which follows the host's FIPS mode like OpenSSL does.RUN dnf -y --installroot /mnt/rootfs --releasever 9 --setopt=install_weak_deps=0 \+ --setopt=tsflags=nodocs \--disableexcludes=all \- module enable nodejs:24 && \- dnf -y --installroot /mnt/rootfs --releasever 9 \- --setopt=install_weak_deps=0 --setopt=tsflags=nodocs \- --disableexcludes=all \- install nodejs nodejs-full-i18n bash coreutils-single sed \+ install libstdc++ openssl-libs openssl-fips-provider openssl-fips-provider-so \+ bash coreutils-single sed \tzdata ca-certificates crypto-policies wget && \dnf --installroot /mnt/rootfs clean all && \rm -rf /mnt/rootfs/var/cache /mnt/rootfs/var/log/dnf*# The nodejs RPM drags npm in as a dependency; the runtime image must carry# no package manager, so remove it from the rootfs (rpmdb stays consistent).-RUN if rpm --root /mnt/rootfs -q npm >/dev/null 2>&1; then \- rpm --root /mnt/rootfs -e --nodeps npm; \- fi+COPY --from=node /usr/local/bin/node /mnt/rootfs/usr/bin/node+COPY --from=node /usr/local/LICENSE /mnt/rootfs/usr/share/licenses/nodejs/LICENSE# The FIPS crypto policy for OpenSSL ships as an opt-in config instead of# being activated system-wide, so installs without FIPS mode keep the defaultdiff --git a/worker/entrypoint.sh b/worker/entrypoint.shindex 081e8bcf41..bc87ef2a3d 100644--- a/worker/entrypoint.sh+++ b/worker/entrypoint.sh@@ -1,5 +1,9 @@#!/bin/sh+# Preserve system CA trust and deployment-provided Node options.+export NODE_OPTIONS="${NODE_OPTIONS:+$NODE_OPTIONS }--use-openssl-ca"+export SSL_CERT_FILE="${SSL_CERT_FILE:-/etc/pki/tls/certs/ca-bundle.crt}"+# Fail closed when FIPS mode is required but the OpenSSL FIPS provider is not# active for Node (e.g. a host without FIPS mode, or an image rebuilt on a# non-FIPS base). This runs before the migrations below open database