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

@@ -629,14 +629,7 @@ app.post("/database/restore", async (req, res) => {
return res.status(400).json({ error: "Invalid encrypted backup file" });
}
// Check hardware compatibility
if (!DatabaseFileEncryption.validateHardwareCompatibility(backupPath)) {
return res.status(400).json({
error: "Hardware fingerprint mismatch",
message:
"This backup was created on different hardware and cannot be restored",
});
}
// Hardware compatibility check removed - no longer required
const restoredPath = DatabaseFileEncryption.restoreFromEncryptedBackup(
backupPath,