Complete hardware fingerprint elimination
Removes all remaining hardware fingerprint validation logic to fix system startup errors and improve cross-hardware compatibility. Key changes: - Remove hardware compatibility checks from database-file-encryption.ts - Remove backup restore hardware validation from database.ts - Remove database initialization hardware checks from db/index.ts - Delete hardware-fingerprint.ts module entirely - Update migration files to use fixed identifiers Fixes "wmic is not recognized" and "Hardware fingerprint mismatch" errors that were preventing system startup and database operations.
This commit is contained in:
@@ -38,21 +38,7 @@ if (enableFileEncryption) {
|
||||
},
|
||||
);
|
||||
|
||||
// Validate hardware compatibility
|
||||
if (
|
||||
!DatabaseFileEncryption.validateHardwareCompatibility(encryptedDbPath)
|
||||
) {
|
||||
databaseLogger.error(
|
||||
"Hardware fingerprint mismatch for encrypted database",
|
||||
{
|
||||
operation: "db_decrypt_failed",
|
||||
reason: "hardware_mismatch",
|
||||
},
|
||||
);
|
||||
throw new Error(
|
||||
"Cannot decrypt database: hardware fingerprint mismatch",
|
||||
);
|
||||
}
|
||||
// Hardware compatibility check removed - using fixed seed encryption
|
||||
|
||||
// Decrypt database content to memory buffer
|
||||
const decryptedBuffer =
|
||||
|
||||
Reference in New Issue
Block a user