Skip to content

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

Fix 20260701120200_add-mfa-recovery-codes to use skipHsmLicenseCheck

Carlos Monastyrskib6c94ebec4dd
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 eb966f25b0..be2562617d 100644
--- a/backend/src/db/migrations/20260701120200_add-mfa-recovery-codes.ts
+++ b/backend/src/db/migrations/20260701120200_add-mfa-recovery-codes.ts
@@ -24,7 +24,12 @@ 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 });
+ const { kmsService } = await getMigrationEncryptionServices({
+ envConfig,
+ keyStore,
+ db: knex,
+ skipHsmLicenseCheck: true
+ });
return kmsService.encryptWithRootKey();
};