From 1e9ad5ab28b8cd9a26093abb0346ee8ccdb5f85d Mon Sep 17 00:00:00 2001 From: Termix Agent Date: Fri, 2 Jan 2026 05:08:49 +0000 Subject: [PATCH] fix: remove keyType from encrypted fields keyType is not sensitive data (just 'rsa', 'ed25519', 'auto', etc.) and was being incorrectly encrypted, causing SSH connection failures with the error: 'Cannot parse privateKey: Unsupported OpenSSH private key type: slh-rsa' because the client received an encrypted JSON string instead of the key type. - Remove keyType from ENCRYPTED_FIELDS in ssh_data set - Remove keyType from ENCRYPTED_FIELDS in ssh_credentials set Fixes SSH key authentication for metrics and terminal connections. Tested: Verified metrics collection returns real data (CPU, memory, disk, uptime) after this fix. --- src/backend/utils/field-crypto.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/backend/utils/field-crypto.ts b/src/backend/utils/field-crypto.ts index 824df007..25ccb68c 100644 --- a/src/backend/utils/field-crypto.ts +++ b/src/backend/utils/field-crypto.ts @@ -32,7 +32,6 @@ class FieldCrypto { "key", "key_password", "keyPassword", - "keyType", "autostartPassword", "autostartKey", "autostartKeyPassword", @@ -46,7 +45,6 @@ class FieldCrypto { "key", "public_key", "publicKey", - "keyType", ]), };