Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

chore(docker): explain why the npm pin sits below the declared engines

Vlad Ligai1f16d2966bfd
diff --git a/Dockerfile.fips.standalone-infisical b/Dockerfile.fips.standalone-infisical
index b01858e5e2..6770e78eff 100644
--- a/Dockerfile.fips.standalone-infisical
+++ b/Dockerfile.fips.standalone-infisical
@@ -6,8 +6,10 @@ ARG INFISICAL_CLI_VERSION=0.43.129
FROM node:22.23.2-trixie-slim AS base
-# npm is pinned ahead of the base image. node:22.23.2 ships npm 10.9.8, whose bundled
-# tar 7.5.11 carries CVE-2026-59873. Drop this line once the base ships npm >= 10.9.9.
+# The base image ships npm 10.9.8, whose bundled tar 7.5.11 carries CVE-2026-59873;
+# 10.9.9 fixes it. package.json declares npm >= 11.10.0, but the committed lockfile
+# does not install under npm 11, which requires every optional platform entry to be
+# present. Regenerating the lockfile is a separate change; until then this stays on 10.x.
RUN npm install -g [email protected]
FROM base AS frontend-dependencies
diff --git a/Dockerfile.standalone-infisical b/Dockerfile.standalone-infisical
index 21198b198b..e3cc948622 100644
--- a/Dockerfile.standalone-infisical
+++ b/Dockerfile.standalone-infisical
@@ -6,8 +6,10 @@ ARG INFISICAL_CLI_VERSION=0.43.129
FROM node:22.23.2-trixie-slim AS base
-# npm is pinned ahead of the base image. node:22.23.2 ships npm 10.9.8, whose bundled
-# tar 7.5.11 carries CVE-2026-59873. Drop this line once the base ships npm >= 10.9.9.
+# The base image ships npm 10.9.8, whose bundled tar 7.5.11 carries CVE-2026-59873;
+# 10.9.9 fixes it. package.json declares npm >= 11.10.0, but the committed lockfile
+# does not install under npm 11, which requires every optional platform entry to be
+# present. Regenerating the lockfile is a separate change; until then this stays on 10.x.
RUN npm install -g [email protected]
FROM base AS frontend-dependencies