[HTTPS] Using Che with self-signed-certs on OpenShift is frustrating. #15658
Labels
area/install
Issues related to installation, including offline/air gap and initial setup
kind/question
Questions that haven't been identified as being feature requests or bugs.
severity/P1
Has a major impact to usage or development of the system.
Milestone
Describe the bug
I'm running Che 7.6.0 on OCP 4.2, where the cluster's certificates are self-signed. I installed Che from OperatorHub and used the following CheCluster yaml:
In order to properly access Che and create/start/use a workspace, I had to do the following:
If I access the Che dashboard immediately after install, I get the following error in my browser:
Once Update DTD for GWT-module descriptors #1 has been resolved, I can create an account and log in to Che. However, none of the devfiles from the devfile registry will load:
Once Package docker runner in Che #2 has been resolved, I can create a workspace, but I cannot access it, as the certificates for the workspace's routes need to be whitelisted too
This continued for each route in Che I encountered. I ended up needing to whitelist over 10 routes just to get a functioning Che workspace
Now that Theia webviews require HTTPS (#15635, eclipse-theia/theia#6465 (comment)), anything that requires WebViews in Che-Theia effectively requires an HTTPS install of Che.
I know that #15298 and eclipse-che/che-docs#1007 should help with some of my concerns. But having to indvidually (and manually) add the certificates for the 5+ routes that Che relies on (Or retrieving my cluster's ca.crt) still creates a bad user experience in my opinion. A lot of on-prem installs of Kube & OpenShift will use self-signed certificates, so I wouldn't consider what I'm trying to do here an edge case either. It also makes setting up Che on a local Kubernetes (Minikube, CRC, etc) much more complicated, and thus harder for newcomers to try out.
If I follow the instructions being prepared in eclipse-che/che-docs#1007, I could generate new certificates and reconfigure the router with those certificates, and add the ca.crt to my browser. But that seems like a ton of work just to use Che with self-signed certs, and I wouldn't necessarily want or be able to change the router's certificates. Furthermore, I would need to share the ca.crt with each user that I wanted to access my Che instance.
Is there any way we can make the setup process for Che with self-signed certs drastically easier on OpenShift? Ideally I would only need to whitelist the certs once in my browser, and wouldn't have to generate custom certificates (unless I wanted to).
The text was updated successfully, but these errors were encountered: