Creating an SSH key/pair for host with invalid characters breaks Che for that user #14912
Labels
kind/bug
Outline of a bug - must adhere to the bug report template.
severity/P1
Has a major impact to usage or development of the system.
Milestone
Platform
Openshift v3.11
Che 7.3.0-SNAPSHOT
Steps to reproduce
Open a workspace
Run the command “SSH: Generate key pair for particular host”
Enter a host with an invalid character - for example a space a forward slash
Close the workspace and try and reopen it
Openshift throws an error saying that the secret being generated is invalid
This is a real issue as the user can no longer open any workspace, meaning they can’t even rectify the problem themselves, rendering Che completely unusable for the affected user, with no means to recover.
I was able to resolve the issue for the affected user by removing the invalid key pair from the Postgres DB.
I think what needs to happen is for the host to be validated by the generate key pair command before allowing it to be created - this validation process should at least only permit acceptable values in an Openshift secret name. Or maybe the host value that is used to create the secret name needs to be sanitised.
The text was updated successfully, but these errors were encountered: