Kawa Viraj
10/08/2025, 5:36 AMinfisical-dev-api |
infisical-dev-api | CryptographyError: FIPS mode is enabled, but the ENCRYPTION_KEY environment variable is not a 256-bit key.
infisical-dev-api | You can generate a 256-bit key using the following command: `openssl rand -base64 32`
infisical-dev-api | at $setFipsModeEnabled (/app/src/lib/crypto/cryptography/crypto.ts:2:5087)
infisical-dev-api | at Object.initialize (/app/src/lib/crypto/cryptography/crypto.ts:2:6477)
infisical-dev-api | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
infisical-dev-api | at async initEnvConfig (/app/src/lib/config/env.ts:2:23225)
infisical-dev-api | at async run (/app/src/main.ts:2:2190) {
infisical-dev-api | error: undefined
infisical-dev-api | }
infisical-dev-api |
infisical-dev-api | Node.js v20.19.5
I already generated key using the below command:
openssl rand -base64 32
I replace the value of ENCRYPTION_KEY with the value I got from the command above, but yet the error is still persist.
LMK @Vlad (Infisical) please.
EDIT:
Another issue I am facing:
Thanks in advance!