mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Update crypto.ts
This commit is contained in:
@@ -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."
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user