Skip to content

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

Update crypto.ts

Daniel Hougaard2725e4d9dd7d
diff --git a/backend/src/lib/crypto/cryptography/crypto.ts b/backend/src/lib/crypto/cryptography/crypto.ts
index 9a986efbb6..967e7e0074 100644
--- a/backend/src/lib/crypto/cryptography/crypto.ts
+++ b/backend/src/lib/crypto/cryptography/crypto.ts
@@ -93,7 +93,13 @@ const cryptographyFactory = () => {
};
const verifyFipsLicense = (licenseService: Pick<TLicenseServiceFactory, "onPremFeatures">) => {
- if (isFipsModeEnabled({ skipInitializationCheck: true }) && !licenseService.onPremFeatures?.fips) {
+ const appCfg = getConfig();
+
+ if (
+ !appCfg.isDevelopmentMode &&
+ isFipsModeEnabled({ skipInitializationCheck: true }) &&
+ !licenseService.onPremFeatures?.fips
+ ) {
throw new CryptographyError({
message: "FIPS mode is enabled but your license does not include FIPS support. Please contact support."
});