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:
ZacharyZcR
2025-09-21 04:17:17 +08:00
parent 057640dd23
commit c8f31e9df5
6 changed files with 21 additions and 514 deletions

View File

@@ -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 =