Skip to content

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

fix: address feedback

Tre Dubrava9b8d90971d55
diff --git a/.github/workflows/check-be-ts-and-lint.yml b/.github/workflows/check-be-ts-and-lint.yml
index 0d17b98dfd..cd128d11b8 100644
--- a/.github/workflows/check-be-ts-and-lint.yml
+++ b/.github/workflows/check-be-ts-and-lint.yml
@@ -17,15 +17,15 @@ jobs:
steps:
- name: ☁️ Checkout source
- uses: actions/checkout@v4
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 🔧 Setup Node 22
id: setup-node
- uses: actions/setup-node@v4
+ uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: "22"
- name: 📦 Cache node_modules
id: cache-node-modules
- uses: actions/cache@v4
+ uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: backend/node_modules
key: backend-node-modules-${{ runner.os }}-node${{ steps.setup-node.outputs.node-version }}-${{ hashFiles('backend/package-lock.json') }}
@@ -34,7 +34,7 @@ jobs:
run: npm ci
working-directory: backend
- name: 📦 Cache tsbuildinfo
- uses: actions/cache@v4
+ uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: backend/.cache/tsconfig.tsbuildinfo
key: backend-tsbuildinfo-${{ github.ref }}-${{ github.sha }}
@@ -52,15 +52,15 @@ jobs:
steps:
- name: ☁️ Checkout source
- uses: actions/checkout@v4
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 🔧 Setup Node 22
id: setup-node
- uses: actions/setup-node@v4
+ uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: "22"
- name: 📦 Cache node_modules
id: cache-node-modules
- uses: actions/cache@v4
+ uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: backend/node_modules
key: backend-node-modules-${{ runner.os }}-node${{ steps.setup-node.outputs.node-version }}-${{ hashFiles('backend/package-lock.json') }}
diff --git a/.github/workflows/check-fe-ts-and-lint.yml b/.github/workflows/check-fe-ts-and-lint.yml
index 6a5fcec8ce..f568772c13 100644
--- a/.github/workflows/check-fe-ts-and-lint.yml
+++ b/.github/workflows/check-fe-ts-and-lint.yml
@@ -17,15 +17,15 @@ jobs:
steps:
- name: ☁️ Checkout source
- uses: actions/checkout@v4
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 🔧 Setup Node 22
id: setup-node
- uses: actions/setup-node@v4
+ uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: "22"
- name: 📦 Cache node_modules
id: cache-node-modules
- uses: actions/cache@v4
+ uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: frontend/node_modules
key: frontend-node-modules-${{ runner.os }}-node${{ steps.setup-node.outputs.node-version }}-${{ hashFiles('frontend/package-lock.json') }}
@@ -34,7 +34,7 @@ jobs:
run: npm ci
working-directory: frontend
- name: 📦 Cache tsbuildinfo
- uses: actions/cache@v4
+ uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: frontend/.cache/tsconfig.app.tsbuildinfo
key: frontend-tsbuildinfo-${{ github.ref }}-${{ github.sha }}
@@ -52,15 +52,15 @@ jobs:
steps:
- name: ☁️ Checkout source
- uses: actions/checkout@v4
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 🔧 Setup Node 22
id: setup-node
- uses: actions/setup-node@v4
+ uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: "22"
- name: 📦 Cache node_modules
id: cache-node-modules
- uses: actions/cache@v4
+ uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: frontend/node_modules
key: frontend-node-modules-${{ runner.os }}-node${{ steps.setup-node.outputs.node-version }}-${{ hashFiles('frontend/package-lock.json') }}
diff --git a/.github/workflows/run-backend-tests.yml b/.github/workflows/run-backend-tests.yml
index 153aeeba4d..8f306794dc 100644
--- a/.github/workflows/run-backend-tests.yml
+++ b/.github/workflows/run-backend-tests.yml
@@ -25,20 +25,20 @@ jobs:
docker system prune -af
- name: ☁️ Checkout source
- uses: actions/checkout@v4
- - uses: KengoTODA/actions-setup-docker-compose@v1
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ - uses: KengoTODA/actions-setup-docker-compose@477353946803dd64eaa44008b865b6bfc88cab4e # v1.2.4
if: ${{ env.ACT }}
name: Install `docker compose` for local simulations
with:
version: "2.14.2"
- name: 🔧 Setup Node 22
id: setup-node
- uses: actions/setup-node@v4
+ uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: "22"
- name: 📦 Cache node_modules
id: cache-node-modules
- uses: actions/cache@v4
+ uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: backend/node_modules
key: backend-node-modules-${{ runner.os }}-node${{ steps.setup-node.outputs.node-version }}-${{ hashFiles('backend/package-lock.json') }}
diff --git a/Dockerfile.fips.standalone-infisical b/Dockerfile.fips.standalone-infisical
index 1d617355b5..cbdc8ad72b 100644
--- a/Dockerfile.fips.standalone-infisical
+++ b/Dockerfile.fips.standalone-infisical
@@ -55,6 +55,27 @@ USER non-root-user
##
## BACKEND
##
+
+# 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 \
+ && rm -rf /var/lib/apt/lists/*
+
+RUN ARCH=$(dpkg --print-architecture) && \
+ if [ "$ARCH" = "amd64" ]; then \
+ ORACLE_ZIP="instantclient-basic-linux.x64-23.26.0.0.0.zip" && \
+ EXPECTED_SHA="d6c79cbcf0ff209363e779855c690d4fc730aed847e9198a2c439bcf34760af5"; \
+ elif [ "$ARCH" = "arm64" ]; then \
+ ORACLE_ZIP="instantclient-basic-linux.arm64-23.26.0.0.0.zip" && \
+ EXPECTED_SHA="9c9a32051e97f087016fb334b7ad5c0aea8511ca8363afd8e0dc6ec4fc515c32"; \
+ fi && \
+ ORACLE_URL="https://download.oracle.com/otn_software/linux/instantclient/2326000/${ORACLE_ZIP}" && \
+ wget -q "$ORACLE_URL" && \
+ echo "$EXPECTED_SHA $ORACLE_ZIP" | sha256sum -c - && \
+ mkdir -p /opt/oracle && \
+ unzip "$ORACLE_ZIP" -d /opt/oracle && \
+ rm "$ORACLE_ZIP"
+
FROM base AS backend-build
ENV ChrystokiConfigurationPath=/usr/safenet/lunaclient/
@@ -117,7 +138,7 @@ RUN mkdir frontend-build
# Production stage
FROM base AS production
-# Install necessary packages including ODBC
+# Install all required runtime packages
RUN apt-get update && apt-get install -y \
build-essential \
autoconf \
@@ -137,40 +158,27 @@ RUN apt-get update && apt-get install -y \
freetds-dev \
freetds-bin \
tdsodbc \
+ libaio1t64 \
+ smbclient \
openssh-client \
+ && curl -1sLf 'https://artifacts-cli.infisical.com/setup.deb.sh' | bash \
+ && apt-get update && apt-get install -y infisical=0.43.47 \
&& rm -rf /var/lib/apt/lists/*
-# Install Oracle Instant Client for OracleDB mTLS wallet support
+# Copy Oracle Instant Client from parallel stage
+COPY --from=oracle /opt/oracle /opt/oracle
RUN ARCH=$(dpkg --print-architecture) && \
if [ "$ARCH" = "amd64" ]; then \
- ORACLE_ZIP="instantclient-basic-linux.x64-23.26.0.0.0.zip" && \
- ORACLE_URL="https://download.oracle.com/otn_software/linux/instantclient/2326000/${ORACLE_ZIP}" && \
- EXPECTED_SHA="d6c79cbcf0ff209363e779855c690d4fc730aed847e9198a2c439bcf34760af5" && \
- apt-get update && apt-get install -y libaio1t64 unzip && \
- ln -sf /lib/x86_64-linux-gnu/libaio.so.1t64 /lib/x86_64-linux-gnu/libaio.so.1 && \
- wget -q "$ORACLE_URL" && \
- echo "$EXPECTED_SHA $ORACLE_ZIP" | sha256sum -c - && \
- unzip "$ORACLE_ZIP" -d /opt/oracle && \
- rm "$ORACLE_ZIP"; \
+ ln -sf /lib/x86_64-linux-gnu/libaio.so.1t64 /lib/x86_64-linux-gnu/libaio.so.1; \
elif [ "$ARCH" = "arm64" ]; then \
- ORACLE_ZIP="instantclient-basic-linux.arm64-23.26.0.0.0.zip" && \
- ORACLE_URL="https://download.oracle.com/otn_software/linux/instantclient/2326000/${ORACLE_ZIP}" && \
- EXPECTED_SHA="9c9a32051e97f087016fb334b7ad5c0aea8511ca8363afd8e0dc6ec4fc515c32" && \
- apt-get update && apt-get install -y libaio1t64 unzip && \
- ln -sf /lib/aarch64-linux-gnu/libaio.so.1t64 /lib/aarch64-linux-gnu/libaio.so.1 && \
- wget -q "$ORACLE_URL" && \
- echo "$EXPECTED_SHA $ORACLE_ZIP" | sha256sum -c - && \
- unzip "$ORACLE_ZIP" -d /opt/oracle && \
- rm "$ORACLE_ZIP"; \
+ ln -sf /lib/aarch64-linux-gnu/libaio.so.1t64 /lib/aarch64-linux-gnu/libaio.so.1; \
fi && \
echo /opt/oracle/instantclient_23_26 > /etc/ld.so.conf.d/oracle-instantclient.conf && \
- ldconfig && \
- rm -rf /var/lib/apt/lists/*
+ ldconfig
# Configure ODBC in production
RUN printf "[FreeTDS]\nDescription = FreeTDS Driver\nDriver = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so\nSetup = /usr/lib/x86_64-linux-gnu/odbc/libtdsS.so\nFileUsage = 1\n" > /etc/odbcinst.ini
-
WORKDIR /openssl-build
RUN wget https://www.openssl.org/source/openssl-3.1.2.tar.gz \
&& tar -xf openssl-3.1.2.tar.gz \
@@ -183,9 +191,6 @@ RUN wget https://www.openssl.org/source/openssl-3.1.2.tar.gz \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
-# Install smbclient for Windows SMB operations
-RUN apt-get update && apt-get install -y smbclient && rm -rf /var/lib/apt/lists/*
-
# Build OpenSSL 3.5.6 for PQC (ML-DSA / SLH-DSA) certificate support.
# Installed to /opt/openssl-pqc so it does not conflict with the FIPS OpenSSL above.
WORKDIR /tmp/openssl-pqc-build
@@ -199,11 +204,6 @@ RUN wget -q https://github.com/openssl/openssl/releases/download/openssl-3.5.6/o
&& cd / \
&& rm -rf /tmp/openssl-pqc-build
-# Install Infisical CLI
-RUN curl -1sLf 'https://artifacts-cli.infisical.com/setup.deb.sh' | bash \
- && apt-get update && apt-get install -y infisical=0.43.47 \
- && rm -rf /var/lib/apt/lists/*
-
RUN groupadd -r -g 1001 nodejs && useradd -r -u 1001 -g nodejs non-root-user
# Give non-root-user permission to update SSL certs
diff --git a/Dockerfile.standalone-infisical b/Dockerfile.standalone-infisical
index b9b29aa535..e822265bd4 100644
--- a/Dockerfile.standalone-infisical
+++ b/Dockerfile.standalone-infisical
@@ -57,6 +57,27 @@ USER non-root-user
##
## BACKEND
##
+
+# 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 \
+ && rm -rf /var/lib/apt/lists/*
+
+RUN ARCH=$(dpkg --print-architecture) && \
+ if [ "$ARCH" = "amd64" ]; then \
+ ORACLE_ZIP="instantclient-basic-linux.x64-23.26.0.0.0.zip" && \
+ EXPECTED_SHA="d6c79cbcf0ff209363e779855c690d4fc730aed847e9198a2c439bcf34760af5"; \
+ elif [ "$ARCH" = "arm64" ]; then \
+ ORACLE_ZIP="instantclient-basic-linux.arm64-23.26.0.0.0.zip" && \
+ EXPECTED_SHA="9c9a32051e97f087016fb334b7ad5c0aea8511ca8363afd8e0dc6ec4fc515c32"; \
+ fi && \
+ ORACLE_URL="https://download.oracle.com/otn_software/linux/instantclient/2326000/${ORACLE_ZIP}" && \
+ wget -q "$ORACLE_URL" && \
+ echo "$EXPECTED_SHA $ORACLE_ZIP" | sha256sum -c - && \
+ mkdir -p /opt/oracle && \
+ unzip "$ORACLE_ZIP" -d /opt/oracle && \
+ rm "$ORACLE_ZIP"
+
FROM base AS backend-build
ENV ChrystokiConfigurationPath=/usr/safenet/lunaclient/
@@ -144,30 +165,18 @@ RUN apt-get update && apt-get install -y \
perl \
openssh-client \
libaio1t64 \
- unzip \
smbclient \
+ && curl -1sLf 'https://artifacts-cli.infisical.com/setup.deb.sh' | bash \
+ && apt-get update && apt-get install -y infisical=0.43.47 \
&& rm -rf /var/lib/apt/lists/*
-# Install Oracle Instant Client for OracleDB mTLS wallet support
+# Copy Oracle Instant Client from parallel stage
+COPY --from=oracle /opt/oracle /opt/oracle
RUN ARCH=$(dpkg --print-architecture) && \
if [ "$ARCH" = "amd64" ]; then \
- ORACLE_ZIP="instantclient-basic-linux.x64-23.26.0.0.0.zip" && \
- ORACLE_URL="https://download.oracle.com/otn_software/linux/instantclient/2326000/${ORACLE_ZIP}" && \
- EXPECTED_SHA="d6c79cbcf0ff209363e779855c690d4fc730aed847e9198a2c439bcf34760af5" && \
- ln -sf /lib/x86_64-linux-gnu/libaio.so.1t64 /lib/x86_64-linux-gnu/libaio.so.1 && \
- wget -q "$ORACLE_URL" && \
- echo "$EXPECTED_SHA $ORACLE_ZIP" | sha256sum -c - && \
- unzip "$ORACLE_ZIP" -d /opt/oracle && \
- rm "$ORACLE_ZIP"; \
+ ln -sf /lib/x86_64-linux-gnu/libaio.so.1t64 /lib/x86_64-linux-gnu/libaio.so.1; \
elif [ "$ARCH" = "arm64" ]; then \
- ORACLE_ZIP="instantclient-basic-linux.arm64-23.26.0.0.0.zip" && \
- ORACLE_URL="https://download.oracle.com/otn_software/linux/instantclient/2326000/${ORACLE_ZIP}" && \
- EXPECTED_SHA="9c9a32051e97f087016fb334b7ad5c0aea8511ca8363afd8e0dc6ec4fc515c32" && \
- ln -sf /lib/aarch64-linux-gnu/libaio.so.1t64 /lib/aarch64-linux-gnu/libaio.so.1 && \
- wget -q "$ORACLE_URL" && \
- echo "$EXPECTED_SHA $ORACLE_ZIP" | sha256sum -c - && \
- unzip "$ORACLE_ZIP" -d /opt/oracle && \
- rm "$ORACLE_ZIP"; \
+ ln -sf /lib/aarch64-linux-gnu/libaio.so.1t64 /lib/aarch64-linux-gnu/libaio.so.1; \
fi && \
echo /opt/oracle/instantclient_23_26 > /etc/ld.so.conf.d/oracle-instantclient.conf && \
ldconfig
@@ -185,11 +194,6 @@ RUN wget -q https://github.com/openssl/openssl/releases/download/openssl-3.5.6/o
&& cd / \
&& rm -rf /tmp/openssl-build
-# Install Infisical CLI
-RUN curl -1sLf 'https://artifacts-cli.infisical.com/setup.deb.sh' | bash \
- && apt-get update && apt-get install -y infisical=0.43.47 \
- && rm -rf /var/lib/apt/lists/*
-
WORKDIR /
# Configure ODBC in production
diff --git a/backend/Dockerfile b/backend/Dockerfile
index 992375e8ca..4feea997d8 100644
--- a/backend/Dockerfile
+++ b/backend/Dockerfile
@@ -23,6 +23,26 @@ RUN npm ci
COPY . .
RUN npm run build
+# 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 \
+ && rm -rf /var/lib/apt/lists/*
+
+RUN ARCH=$(dpkg --print-architecture) && \
+ if [ "$ARCH" = "amd64" ]; then \
+ ORACLE_ZIP="instantclient-basic-linux.x64-23.26.0.0.0.zip" && \
+ EXPECTED_SHA="d6c79cbcf0ff209363e779855c690d4fc730aed847e9198a2c439bcf34760af5"; \
+ elif [ "$ARCH" = "arm64" ]; then \
+ ORACLE_ZIP="instantclient-basic-linux.arm64-23.26.0.0.0.zip" && \
+ EXPECTED_SHA="9c9a32051e97f087016fb334b7ad5c0aea8511ca8363afd8e0dc6ec4fc515c32"; \
+ fi && \
+ ORACLE_URL="https://download.oracle.com/otn_software/linux/instantclient/2326000/${ORACLE_ZIP}" && \
+ wget -q "$ORACLE_URL" && \
+ echo "$EXPECTED_SHA $ORACLE_ZIP" | sha256sum -c - && \
+ mkdir -p /opt/oracle && \
+ unzip "$ORACLE_ZIP" -d /opt/oracle && \
+ rm "$ORACLE_ZIP"
+
# Production dependencies (runs in parallel with build)
FROM node:22.22.0-trixie-slim AS prod-deps
@@ -54,32 +74,23 @@ RUN apt-get update && apt-get install -y \
unixodbc \
freetds-bin \
libaio1t64 \
- unzip \
- wget \
+ smbclient \
+ curl \
+ bash \
+ git \
+ && curl -1sLf 'https://artifacts-cli.infisical.com/setup.deb.sh' | bash \
+ && apt-get update && apt-get install -y infisical=0.43.14 \
&& rm -rf /var/lib/apt/lists/*
RUN printf "[FreeTDS]\nDescription = FreeTDS Driver\nDriver = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so\nSetup = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so\nFileUsage = 1\n" > /etc/odbcinst.ini
-# Install Oracle Instant Client for OracleDB mTLS wallet support
+# Copy Oracle Instant Client from parallel stage
+COPY --from=oracle /opt/oracle /opt/oracle
RUN ARCH=$(dpkg --print-architecture) && \
if [ "$ARCH" = "amd64" ]; then \
- ORACLE_ZIP="instantclient-basic-linux.x64-23.26.0.0.0.zip" && \
- ORACLE_URL="https://download.oracle.com/otn_software/linux/instantclient/2326000/${ORACLE_ZIP}" && \
- EXPECTED_SHA="d6c79cbcf0ff209363e779855c690d4fc730aed847e9198a2c439bcf34760af5" && \
- ln -sf /lib/x86_64-linux-gnu/libaio.so.1t64 /lib/x86_64-linux-gnu/libaio.so.1 && \
- wget -q "$ORACLE_URL" && \
- echo "$EXPECTED_SHA $ORACLE_ZIP" | sha256sum -c - && \
- unzip "$ORACLE_ZIP" -d /opt/oracle && \
- rm "$ORACLE_ZIP"; \
+ ln -sf /lib/x86_64-linux-gnu/libaio.so.1t64 /lib/x86_64-linux-gnu/libaio.so.1; \
elif [ "$ARCH" = "arm64" ]; then \
- ORACLE_ZIP="instantclient-basic-linux.arm64-23.26.0.0.0.zip" && \
- ORACLE_URL="https://download.oracle.com/otn_software/linux/instantclient/2326000/${ORACLE_ZIP}" && \
- EXPECTED_SHA="9c9a32051e97f087016fb334b7ad5c0aea8511ca8363afd8e0dc6ec4fc515c32" && \
- ln -sf /lib/aarch64-linux-gnu/libaio.so.1t64 /lib/aarch64-linux-gnu/libaio.so.1 && \
- wget -q "$ORACLE_URL" && \
- echo "$EXPECTED_SHA $ORACLE_ZIP" | sha256sum -c - && \
- unzip "$ORACLE_ZIP" -d /opt/oracle && \
- rm "$ORACLE_ZIP"; \
+ ln -sf /lib/aarch64-linux-gnu/libaio.so.1t64 /lib/aarch64-linux-gnu/libaio.so.1; \
fi && \
echo /opt/oracle/instantclient_23_26 > /etc/ld.so.conf.d/oracle-instantclient.conf && \
ldconfig
@@ -88,14 +99,6 @@ COPY --from=build /app .
RUN rm -rf ./node_modules ./bdd ./e2e-test
COPY --from=prod-deps /app/node_modules ./node_modules
-# Install smbclient for Windows SMB operations
-RUN apt-get update && apt-get install -y smbclient
-
-# Install Infisical CLI
-RUN apt-get update && apt-get install -y curl bash && \
- curl -1sLf 'https://artifacts-cli.infisical.com/setup.deb.sh' | bash && \
- apt-get update && apt-get install -y infisical=0.43.14 git
-
HEALTHCHECK --interval=10s --timeout=3s --start-period=10s \
CMD node healthcheck.js
diff --git a/backend/Dockerfile.dev b/backend/Dockerfile.dev
index a072ce5a9f..67c1e762a6 100644
--- a/backend/Dockerfile.dev
+++ b/backend/Dockerfile.dev
@@ -7,7 +7,7 @@ ARG SOFTHSM2_VERSION=2.5.0
ENV SOFTHSM2_VERSION=${SOFTHSM2_VERSION} \
SOFTHSM2_SOURCES=/tmp/softhsm2
-# Install build dependencies including python3 (required for pkcs11js and partially TDS driver)
+# Install all build and runtime dependencies
RUN apt-get update && apt-get install -y \
build-essential \
autoconf \
@@ -24,26 +24,27 @@ RUN apt-get update && apt-get install -y \
wget \
perl \
pkg-config \
- unzip
-
-# Install libaio (required for Oracle Instant Client) - architecture-specific for Debian Trixie
+ unzip \
+ libaio1t64 \
+ unixodbc \
+ unixodbc-dev \
+ freetds-dev \
+ freetds-bin \
+ tdsodbc \
+ opensc \
+ smbclient \
+ && curl -1sLf 'https://artifacts-cli.infisical.com/setup.deb.sh' | bash \
+ && apt-get update && apt-get install -y infisical=0.43.14 \
+ && rm -rf /var/lib/apt/lists/*
+
+# Create libaio symlink for Oracle Instant Client
RUN ARCH=$(dpkg --print-architecture) && \
if [ "$ARCH" = "arm64" ]; then \
- apt-get install -y libaio1t64 && \
ln -sf /lib/aarch64-linux-gnu/libaio.so.1t64 /lib/aarch64-linux-gnu/libaio.so.1; \
else \
- apt-get install -y libaio1t64 && \
ln -sf /lib/x86_64-linux-gnu/libaio.so.1t64 /lib/x86_64-linux-gnu/libaio.so.1; \
fi
-# Install dependencies for TDS driver (required for SAP ASE dynamic secrets)
-RUN apt-get install -y \
- unixodbc \
- unixodbc-dev \
- freetds-dev \
- freetds-bin \
- tdsodbc
-
RUN printf "[FreeTDS]\nDescription = FreeTDS Driver\nDriver = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so\nSetup = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so\nFileUsage = 1\n" > /etc/odbcinst.ini
# Build and install SoftHSM2
@@ -59,9 +60,6 @@ RUN git checkout ${SOFTHSM2_VERSION} -b ${SOFTHSM2_VERSION} \
WORKDIR /root
RUN rm -fr ${SOFTHSM2_SOURCES}
-# Install pkcs11-tool
-RUN apt-get install -y opensc
-
# Install Oracle Instant Client for OracleDB mTLS (Wallet) support
RUN mkdir -p /opt/oracle && \
ARCH=$(dpkg --print-architecture) && \
@@ -92,14 +90,6 @@ RUN wget -q https://github.com/openssl/openssl/releases/download/openssl-3.5.6/o
# ? App setup
-# Install smbclient for Windows SMB operations
-RUN apt-get update && apt-get install -y smbclient
-
-# Install Infisical CLI
-RUN curl -1sLf 'https://artifacts-cli.infisical.com/setup.deb.sh' | bash && \
- apt-get update && \
- apt-get install -y infisical=0.43.14
-
WORKDIR /app
COPY package.json package.json
diff --git a/backend/Dockerfile.dev.fips b/backend/Dockerfile.dev.fips
index 911799f17e..c119abdb23 100644
--- a/backend/Dockerfile.dev.fips
+++ b/backend/Dockerfile.dev.fips
@@ -7,7 +7,7 @@ ARG SOFTHSM2_VERSION=2.5.0
ENV SOFTHSM2_VERSION=${SOFTHSM2_VERSION} \
SOFTHSM2_SOURCES=/tmp/softhsm2
-# Install build dependencies including python3 (required for pkcs11js and partially TDS driver)
+# Install all build and runtime dependencies
RUN apt-get update && apt-get install -y \
build-essential \
autoconf \
@@ -23,25 +23,24 @@ RUN apt-get update && apt-get install -y \
pkg-config \
perl \
wget \
- unzip
-
-# Install libaio (required for Oracle Instant Client) - architecture-specific for Debian Trixie
-RUN ARCH=$(dpkg --print-architecture) && \
- if [ "$ARCH" = "arm64" ]; then \
- apt-get install -y libaio1t64 && \
- ln -sf /lib/aarch64-linux-gnu/libaio.so.1t64 /lib/aarch64-linux-gnu/libaio.so.1; \
- else \
- apt-get install -y libaio1t64 && \
- ln -sf /lib/x86_64-linux-gnu/libaio.so.1t64 /lib/x86_64-linux-gnu/libaio.so.1; \
- fi
-
-# Install dependencies for TDS driver (required for SAP ASE dynamic secrets)
-RUN apt-get install -y \
+ unzip \
+ libaio1t64 \
unixodbc \
unixodbc-dev \
freetds-dev \
freetds-bin \
- tdsodbc
+ tdsodbc \
+ opensc \
+ smbclient \
+ && curl -1sLf 'https://artifacts-cli.infisical.com/setup.deb.sh' | bash \
+ && apt-get update && apt-get install -y infisical=0.43.14 \
+ && rm -rf /var/lib/apt/lists/*
+
+# Create libaio symlink for Oracle Instant Client
+RUN ARCH=$(dpkg --print-architecture) && \
+ if [ "$ARCH" = "arm64" ]; then \
+ ln -sf /lib/aarch64-linux-gnu/libaio.so.1t64 /lib/aarch64-linux-gnu/libaio.so.1; \
+ fi
RUN printf "[FreeTDS]\nDescription = FreeTDS Driver\nDriver = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so\nSetup = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so\nFileUsage = 1\n" > /etc/odbcinst.ini
@@ -58,9 +57,6 @@ RUN git checkout ${SOFTHSM2_VERSION} -b ${SOFTHSM2_VERSION} \
WORKDIR /root
RUN rm -fr ${SOFTHSM2_SOURCES}
-# Install pkcs11-tool
-RUN apt-get install -y opensc
-
# Install Oracle Instant Client for OracleDB mTLS (Wallet) support
RUN mkdir -p /opt/oracle && \
ARCH=$(dpkg --print-architecture) && \
@@ -103,14 +99,6 @@ RUN wget -q https://github.com/openssl/openssl/releases/download/openssl-3.5.6/o
# ? App setup
-# Install smbclient for Windows SMB operations
-RUN apt-get update && apt-get install -y smbclient
-
-# Install Infisical CLI
-RUN curl -1sLf 'https://artifacts-cli.infisical.com/setup.deb.sh' | bash && \
- apt-get update && \
- apt-get install -y infisical=0.43.14
-
WORKDIR /app
COPY package.json package.json