Skip to content

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

Default skipHsmLicenseCheck on getMigrationEncryptionServices to true

Carlos Monastyrski329575ab0a62
diff --git a/backend/src/db/migrations/20260701120200_add-mfa-recovery-codes.ts b/backend/src/db/migrations/20260701120200_add-mfa-recovery-codes.ts
index be2562617d..eb966f25b0 100644
--- a/backend/src/db/migrations/20260701120200_add-mfa-recovery-codes.ts
+++ b/backend/src/db/migrations/20260701120200_add-mfa-recovery-codes.ts
@@ -24,12 +24,7 @@ const startRootEncryptor = async (knex: Knex) => {
const kmsRootConfigDAL = kmsRootConfigDALFactory(knex);
const envConfig = await getMigrationEnvConfig(superAdminDAL, hsmService, kmsRootConfigDAL);
const keyStore = inMemoryKeyStore();
- const { kmsService } = await getMigrationEncryptionServices({
- envConfig,
- keyStore,
- db: knex,
- skipHsmLicenseCheck: true
- });
+ const { kmsService } = await getMigrationEncryptionServices({ envConfig, keyStore, db: knex });
return kmsService.encryptWithRootKey();
};
diff --git a/backend/src/db/migrations/utils/services.ts b/backend/src/db/migrations/utils/services.ts
index 554e849337..4ec1c437dc 100644
--- a/backend/src/db/migrations/utils/services.ts
+++ b/backend/src/db/migrations/utils/services.ts
@@ -54,7 +54,7 @@ export const getMigrationEncryptionServices = async ({
envConfig,
db,
keyStore,
- skipHsmLicenseCheck = false
+ skipHsmLicenseCheck = true
}: TDependencies) => {
// ----- DAL dependencies -----
const orgDAL = orgDALFactory(db);