mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-07-17 05:43:36 +00:00
refactor(crypto): remove pending share queue and credential sharing key
With server-unwrappable DEKs both sides of a share are always available, so the needsReEncryption queue, CREDENTIAL_SHARING_KEY and the system_* shadow columns on ssh_credentials are gone. A one-time boot cleanup re-creates legacy pending share copies where possible (dropping unresolvable ones with a warning) and drops the legacy columns.
This commit is contained in:
@@ -124,6 +124,10 @@ import {
|
||||
await import("./utils/crypto-migration/dek-migration.js");
|
||||
await runBootDekMigration({ cleanupLegacy: true });
|
||||
|
||||
const { runLegacySharedCredentialCleanup } =
|
||||
await import("./utils/crypto-migration/legacy-share-cleanup.js");
|
||||
await runLegacySharedCredentialCleanup();
|
||||
|
||||
const authManager = AuthManager.getInstance();
|
||||
await authManager.initialize();
|
||||
DataCrypto.initialize();
|
||||
|
||||
Reference in New Issue
Block a user