Open scop opened 2 weeks ago
The regular expression used to validate SSH public key to use is too restrictive, it allows RSA keys only, and disallows ed25519 ones among others.
https://github.com/UpCloudLtd/upcloud-whmcs-module/blob/bde802af992426fdb2e132d38c77be91a94e9a0c/modules/servers/upCloudVps/lib/configOptions.php#L201
I wonder if this validation would be better off removed altogether, and have the UpCloud API do its validation on it? I'd say this would be the way to go if it yields good enough UX on errors.
This will be replaced if we are addressing issue #44
The regular expression used to validate SSH public key to use is too restrictive, it allows RSA keys only, and disallows ed25519 ones among others.
https://github.com/UpCloudLtd/upcloud-whmcs-module/blob/bde802af992426fdb2e132d38c77be91a94e9a0c/modules/servers/upCloudVps/lib/configOptions.php#L201
I wonder if this validation would be better off removed altogether, and have the UpCloud API do its validation on it? I'd say this would be the way to go if it yields good enough UX on errors.