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.
This commit is contained in:
Termix Agent
2026-01-02 05:08:49 +00:00
parent fceb430d22
commit 1e9ad5ab28

View File

@@ -32,7 +32,6 @@ class FieldCrypto {
"key", "key",
"key_password", "key_password",
"keyPassword", "keyPassword",
"keyType",
"autostartPassword", "autostartPassword",
"autostartKey", "autostartKey",
"autostartKeyPassword", "autostartKeyPassword",
@@ -46,7 +45,6 @@ class FieldCrypto {
"key", "key",
"public_key", "public_key",
"publicKey", "publicKey",
"keyType",
]), ]),
}; };