From 9eeeac24d4ac6b288dea2b43d2432080f244b34a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=9C=A8=20Audrey=20=E2=9C=A8?= Date: Wed, 26 Mar 2025 18:37:24 -0400 Subject: [PATCH] =?UTF-8?q?Revert=20"[PM-19571]=20do=20not=20import=20ssh?= =?UTF-8?q?=20keys=20when=20rehydrating=20exported=20data=20(#14=E2=80=A6"?= =?UTF-8?q?=20(#14013)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit e60ea3497ac3fa90264b2a2d8bf10463dd0bc8bd. --- libs/common/src/models/export/ssh-key.export.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/common/src/models/export/ssh-key.export.ts b/libs/common/src/models/export/ssh-key.export.ts index 15cd3015160..5387daf7dd0 100644 --- a/libs/common/src/models/export/ssh-key.export.ts +++ b/libs/common/src/models/export/ssh-key.export.ts @@ -26,9 +26,10 @@ export class SshKeyExport { } static toDomain(req: SshKeyExport, domain = new SshKeyDomain()) { - domain.privateKey = new EncString(req.privateKey); - domain.publicKey = new EncString(req.publicKey); - domain.keyFingerprint = new EncString(req.keyFingerprint); + const parsedKey = import_ssh_key(req.privateKey); + domain.privateKey = new EncString(parsedKey.privateKey); + domain.publicKey = new EncString(parsedKey.publicKey); + domain.keyFingerprint = new EncString(parsedKey.fingerprint); return domain; }