Skip to content

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

refactor: update Dockerfile to use numeric UID for non-root user and update libssl3t64 version

Victor Hugo dos Santos87f63432c3d3
diff --git a/Dockerfile.fips.standalone-infisical b/Dockerfile.fips.standalone-infisical
index bc20a9add2..8c445a282f 100644
--- a/Dockerfile.fips.standalone-infisical
+++ b/Dockerfile.fips.standalone-infisical
@@ -50,7 +50,7 @@ RUN groupadd -r -g 1001 nodejs && useradd -r -u 1001 -g nodejs non-root-user
COPY --from=frontend-builder --chown=non-root-user:nodejs /app/dist ./
-USER non-root-user
+USER 1001
##
## BACKEND
@@ -189,7 +189,7 @@ RUN apt-get update && apt-get install -y \
libgnutls30t64=3.8.9-3+deb13u4 \
libc6=2.41-12+deb13u3 \
libc-bin=2.41-12+deb13u3 \
- libssl3t64=3.5.6-1~deb13u1 \
+ libssl3t64=3.5.6-1~deb13u2 \
dpkg=1.22.22 \
libcap2 \
libnghttp2-14=1.64.0-1.1+deb13u1 \
@@ -297,6 +297,7 @@ RUN grep -v 'import "./lib/telemetry/instrumentation.mjs";' dist/main.mjs > dist
RUN ln -sf /usr/local/lib64/ossl-modules /usr/local/lib/ossl-modules || \
ln -sf /usr/local/lib/ossl-modules /usr/local/lib64/ossl-modules
-USER non-root-user
+# Use numeric UID so Kubernetes can verify the image runs as non-root.
+USER 1001
CMD ["./standalone-entrypoint.sh"]
diff --git a/Dockerfile.standalone-infisical b/Dockerfile.standalone-infisical
index 21e63e46c6..e5206a1271 100644
--- a/Dockerfile.standalone-infisical
+++ b/Dockerfile.standalone-infisical
@@ -52,7 +52,7 @@ RUN useradd --system --uid 1001 --gid nodejs non-root-user
COPY --from=frontend-builder --chown=non-root-user:nodejs /app/dist ./
-USER non-root-user
+USER 1001
##
## BACKEND
@@ -196,7 +196,7 @@ RUN apt-get update && apt-get install -y \
libgnutls30t64=3.8.9-3+deb13u4 \
libc6=2.41-12+deb13u3 \
libc-bin=2.41-12+deb13u3 \
- libssl3t64=3.5.6-1~deb13u1 \
+ libssl3t64=3.5.6-1~deb13u2 \
dpkg=1.22.22 \
libcap2 \
libnghttp2-14=1.64.0-1.1+deb13u1 \
@@ -298,6 +298,7 @@ ENV TELEMETRY_ENABLED true
EXPOSE 8080
EXPOSE 443
-USER non-root-user
+# Use numeric UID so Kubernetes can verify the image runs as non-root
+USER 1001
CMD ["./standalone-entrypoint.sh"]