-
Task
-
Resolution: Done
-
Major
-
3.26.0.GA
-
None
-
False
-
-
False
-
-
Description
When adding SSH keys via addSshKeysFromStrings method in UserPreferences.ts, there was no verification that the keys were actually entered correctly into the form fields. This could lead to silent failures where the keys appeared to be added but were actually incomplete or corrupted.
Solution
Added validation after pasting each SSH key to verify the field values match the expected input:
- After pasting private SSH key: read field value and compare with privateSshKey parameter
- After pasting public SSH key: read field value and compare with publicSshKey parameter
If validation fails, an error is thrown with a descriptive message. On success, a confirmation log message is written.