-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't allow installing Che with Openshift Oauth when no OAuth user exist #14013
Comments
linking to: #13975 |
@davidfestal Can we close the issue since eclipse-che/che-operator#74 is merged? |
I don’t understand what “ On a brand new Openshift 4 cluster, you have only the kubeadmin user (which is not part of the OS 4 OAuth system)” means. The kubeadmin user is certainly supported for oauth flows as part of its design (console and prometheus both can do oauth). Can you describe exactly what is broken with kubeadmin so we can fix it and CRW can work ootb on an openshift cluster? |
The issue must have been fixed in keycloak 8.0.0, but CRW depends on RH SSO. |
Discussed with @davidfestal and @tolusha this morning. I have described our plan to overcome this limitation here. |
Describe the bug
On a brand new Openshift 4 cluster, you have only the
kubeadmin
user (which is not part of the OS 4 OAuth system). If you try to connect to Che Dashboard through the Openshift login askubeadmin
, you will get a bad Keycloak error message with no error at all, and nothing in Che logs.So we have to find a way to prevent the Che operator to start a Che workspace if the operator detects that there is no OAuth login method / users available (if there is only
kubeadmin
)We have to be sure that we tackle the use-case when a tester would try to start a Che server on a brand new cluster (without having setup real users first)
Che version
Steps to reproduce
On a new Openshift 4 cluster:
openshift-v4
linkkube:admin
method under thekubeadmin
userExpected behavior
The installation of the Che server should fail with a decent error message (in the CheCluster resource status) if the Openshift cluster OAuth hasn't been setup and no Openshift user is available apart from the temporary / special
kubeadmin
user.Runtime
kubectl version
)minikube version
andkubectl version
)minishift version
andoc version
)docker version
andkubectl version
)Screenshots
Installation method
Environment
The text was updated successfully, but these errors were encountered: