Skip to content

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

fix(fips): x86 support

Daniel Hougaard561dbb88357e
diff --git a/.github/workflows/release-standalone-docker-img-postgres-offical.yml b/.github/workflows/release-standalone-docker-img-postgres-offical.yml
index 7a73288cb1..812283b338 100644
--- a/.github/workflows/release-standalone-docker-img-postgres-offical.yml
+++ b/.github/workflows/release-standalone-docker-img-postgres-offical.yml
@@ -79,12 +79,7 @@ jobs:
working-directory: backend
- name: version output
run: |
- echo "Output Value: ${{ steps.version.outputs.major }}"
- echo "Output Value: ${{ steps.version.outputs.minor }}"
- echo "Output Value: ${{ steps.version.outputs.patch }}"
- echo "Output Value: ${{ steps.version.outputs.version }}"
- echo "Output Value: ${{ steps.version.outputs.version_type }}"
- echo "Output Value: ${{ steps.version.outputs.increment }}"
+ echo "Version: ${{ steps.version.outputs.major }}"
- name: Save commit hashes for tag
id: commit
uses: pr-mpt/actions-commit-hash@v2
diff --git a/Dockerfile.fips.standalone-infisical b/Dockerfile.fips.standalone-infisical
index b95794832f..974ce4a429 100644
--- a/Dockerfile.fips.standalone-infisical
+++ b/Dockerfile.fips.standalone-infisical
@@ -34,6 +34,8 @@ ENV VITE_INFISICAL_PLATFORM_VERSION $INFISICAL_PLATFORM_VERSION
ARG CAPTCHA_SITE_KEY
ENV VITE_CAPTCHA_SITE_KEY $CAPTCHA_SITE_KEY
+ENV NODE_OPTIONS="--max-old-space-size=8192"
+
# Build
RUN npm run build
@@ -209,6 +211,11 @@ EXPOSE 443
RUN grep -v 'import "./lib/telemetry/instrumentation.mjs";' dist/main.mjs > dist/main.mjs.tmp && \
mv dist/main.mjs.tmp dist/main.mjs
+# The OpenSSL library is installed in different locations in different architectures (x86_64 and arm64).
+# This is a workaround to avoid errors when the library is not found.
+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
CMD ["./standalone-entrypoint.sh"]
\ No newline at end of file