Skip to content

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

chore: bump the bundled CLI to 0.44.12, patch backend dependencies and drop npm test folders (#9091)

Vlad Ligai3745a929f369
diff --git a/Dockerfile.fips.standalone-infisical b/Dockerfile.fips.standalone-infisical
index b85323be28..08a6daae22 100644
--- a/Dockerfile.fips.standalone-infisical
+++ b/Dockerfile.fips.standalone-infisical
@@ -2,7 +2,7 @@ ARG POSTHOG_HOST=https://app.posthog.com
ARG POSTHOG_API_KEY=posthog-api-key
ARG INTERCOM_ID=intercom-id
-ARG INFISICAL_CLI_VERSION=0.44.6
+ARG INFISICAL_CLI_VERSION=0.44.12
FROM node:26.12.1-trixie-slim AS base
@@ -159,6 +159,8 @@ RUN printf "[FreeTDS]\nDescription = FreeTDS Driver\nDriver = /usr/lib/x86_64-li
COPY --from=backend-build /app .
RUN rm -rf ./node_modules ./bdd ./e2e-test ./src
RUN npm ci --omit=dev
+# Test folders these packages publish, with sample private keys that image scanners flag
+RUN rm -rf node_modules/@fastify/reply-from/test node_modules/ssh2/test node_modules/universal-github-app-jwt/test
RUN mkdir frontend-build
diff --git a/Dockerfile.standalone-infisical b/Dockerfile.standalone-infisical
index fb2626aa7d..4163bbffcc 100644
--- a/Dockerfile.standalone-infisical
+++ b/Dockerfile.standalone-infisical
@@ -2,7 +2,7 @@ ARG POSTHOG_HOST=https://app.posthog.com
ARG POSTHOG_API_KEY=posthog-api-key
ARG INTERCOM_ID=intercom-id
-ARG INFISICAL_CLI_VERSION=0.44.6
+ARG INFISICAL_CLI_VERSION=0.44.12
FROM node:26.12.1-trixie-slim AS base
@@ -154,6 +154,8 @@ RUN apt-get update && apt-get install -y \
COPY backend/package*.json ./
RUN npm ci --omit=dev
+# Test folders these packages publish, with sample private keys that image scanners flag
+RUN rm -rf node_modules/@fastify/reply-from/test node_modules/ssh2/test node_modules/universal-github-app-jwt/test
# Production stage
FROM base AS backend-runner
diff --git a/backend/Dockerfile b/backend/Dockerfile
index c784d6f76e..c95961a107 100644
--- a/backend/Dockerfile
+++ b/backend/Dockerfile
@@ -1,5 +1,5 @@
# Build stage
-ARG INFISICAL_CLI_VERSION=0.44.6
+ARG INFISICAL_CLI_VERSION=0.44.12
FROM node:26.12.1-trixie-slim AS build
@@ -25,6 +25,10 @@ RUN npm ci
COPY . .
RUN npm run build
+# Build output without dev dependencies, copied whole into the production stage
+FROM build AS build-output
+RUN rm -rf ./node_modules ./bdd ./e2e-test
+
# Oracle Instant Client (parallel stage — downloads while other stages build)
FROM debian:trixie-slim AS oracle
RUN apt-get update && apt-get install -y unzip wget ca-certificates \
@@ -64,6 +68,8 @@ RUN apt-get update && apt-get install -y \
COPY package*.json ./
RUN npm ci --omit=dev
+# Test folders these packages publish, with sample private keys that image scanners flag
+RUN rm -rf node_modules/@fastify/reply-from/test node_modules/ssh2/test node_modules/universal-github-app-jwt/test
# Production stage
FROM node:26.12.1-trixie-slim
@@ -100,8 +106,7 @@ RUN ARCH=$(dpkg --print-architecture) && \
echo /opt/oracle/instantclient_23_26 > /etc/ld.so.conf.d/oracle-instantclient.conf && \
ldconfig
-COPY --from=build /app .
-RUN rm -rf ./node_modules ./bdd ./e2e-test
+COPY --from=build-output /app .
COPY --from=prod-deps /app/node_modules ./node_modules
HEALTHCHECK --interval=10s --timeout=3s --start-period=10s \
diff --git a/backend/Dockerfile.dev b/backend/Dockerfile.dev
index a615b26ac7..972e6a3565 100644
--- a/backend/Dockerfile.dev
+++ b/backend/Dockerfile.dev
@@ -1,4 +1,4 @@
-ARG INFISICAL_CLI_VERSION=0.44.6
+ARG INFISICAL_CLI_VERSION=0.44.12
FROM debian:trixie-slim AS oracle
RUN apt-get update && apt-get install -y unzip wget ca-certificates \
diff --git a/backend/Dockerfile.fips-toolchain b/backend/Dockerfile.fips-toolchain
index f0952324af..416603d772 100644
--- a/backend/Dockerfile.fips-toolchain
+++ b/backend/Dockerfile.fips-toolchain
@@ -20,7 +20,7 @@
# removed. Also includes OpenSSL (Apache-2.0), SoftHSM2 (BSD-2-Clause), the Infisical
# CLI, and Debian packages under their respective licenses.
-ARG INFISICAL_CLI_VERSION=0.44.6
+ARG INFISICAL_CLI_VERSION=0.44.12
FROM debian:trixie-slim AS oracle
RUN apt-get update && apt-get install -y unzip wget ca-certificates \
diff --git a/backend/package-lock.json b/backend/package-lock.json
index 325e632f49..87a16df442 100644
--- a/backend/package-lock.json
+++ b/backend/package-lock.json
@@ -15291,9 +15291,9 @@
"license": "MIT"
},
"node_modules/follow-redirects": {
- "version": "1.16.1",
- "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.1.tgz",
- "integrity": "sha512-FNvFGzoMLWmE6Yj9spb/zjd7yiNCHiAW9/Tg9CXrQ8wuu32HtlJOwWO11OJafl5FfY3DxTdQ0vj42zU1kvv5jg==",
+ "version": "1.16.2",
+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.2.tgz",
+ "integrity": "sha512-/kVP2U8z596Ia0gwFrwyIeo74ta5aVmSeU1FfAUMAmcEP5EP7zydmag3SLiN64NaRKef3lxsq7i/g7ltJQDGow==",
"funding": [
{
"type": "individual",
diff --git a/build-versions.env b/build-versions.env
index 767719f73f..2dd6e43592 100644
--- a/build-versions.env
+++ b/build-versions.env
@@ -2,4 +2,4 @@
# Read by the Makefile for compose builds and by CI for image builds.
# The Dockerfiles carry matching ARG defaults so external builders work unaided;
# check-dockerfile-pins.yml asserts those defaults still match this file.
-INFISICAL_CLI_VERSION=0.44.6
+INFISICAL_CLI_VERSION=0.44.12