From 9073dfd808a970da37ac90b42941d20788bd6357 Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Mon, 10 Nov 2025 18:22:27 +0100 Subject: [PATCH] QA override --- .../migrations/minimum-kdf-migration.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/libs/common/src/key-management/encrypted-migrator/migrations/minimum-kdf-migration.ts b/libs/common/src/key-management/encrypted-migrator/migrations/minimum-kdf-migration.ts index 0666064b36e..d6f591af99b 100644 --- a/libs/common/src/key-management/encrypted-migrator/migrations/minimum-kdf-migration.ts +++ b/libs/common/src/key-management/encrypted-migrator/migrations/minimum-kdf-migration.ts @@ -34,13 +34,10 @@ export class MinimumKdfMigration implements EncryptedMigration { ); await this.changeKdfService.updateUserKdfParams( masterPassword!, - new PBKDF2KdfConfig(PBKDF2KdfConfig.ITERATIONS.defaultValue), + new PBKDF2KdfConfig(600000), userId, ); - await this.kdfConfigService.setKdfConfig( - userId, - new PBKDF2KdfConfig(PBKDF2KdfConfig.ITERATIONS.defaultValue), - ); + await this.kdfConfigService.setKdfConfig(userId, new PBKDF2KdfConfig(600000)); } async needsMigration(userId: UserId): Promise { @@ -54,7 +51,7 @@ export class MinimumKdfMigration implements EncryptedMigration { const kdfConfig = await this.kdfConfigService.getKdfConfig(userId); if ( kdfConfig.kdfType !== KdfType.PBKDF2_SHA256 || - kdfConfig.iterations >= PBKDF2KdfConfig.ITERATIONS.min + kdfConfig.iterations >= 600000 // QA override ) { return "noMigrationNeeded"; }