mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 07:27:58 +00:00
Merge pull request #4209 from Infisical/daniel/fips-flag-dev
fix(fips): allow fips in dev mode without license
This commit is contained in:
@@ -93,7 +93,13 @@ const cryptographyFactory = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const verifyFipsLicense = (licenseService: Pick<TLicenseServiceFactory, "onPremFeatures">) => {
|
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({
|
throw new CryptographyError({
|
||||||
message: "FIPS mode is enabled but your license does not include FIPS support. Please contact support."
|
message: "FIPS mode is enabled but your license does not include FIPS support. Please contact support."
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user