-
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
Do not allow users to change username when logging for the first time #17265
Comments
it's even worse if the user has an autofill plugin that will tend to set the fields with real names, including spaces. This is what I did by mistake, and now I have the following error message when trying to create a workspace on Hosted Toolchain:
|
I agree on the username. email/name are a different story and can be discussed in a different issue. |
@tolusha will you be able to prioritize the issue for the upcoming sprint. This is a fairly important integration issue for Hosted Toolchain |
@ibuziuk Maybe @skabashnyuk knows |
@ibuziuk |
@tolusha thanks a lot this is yet another issue that is important for Hosted Toolchain, hopefully, it will be possible to have a fix for CRW 2.4 |
I thought having |
There is mixing up with usernames. |
@tolusha looks like the issue was moved out from the sprint, but we absolutely need a solution for it. Can we simply make the username field uneditable? |
@ibuziuk |
Please leave some way for the user to choose the username if needed. |
It's pre-populated right now. And doesn't work well. The form also requires to provide Name & email (not sure why, but it's a different issue). And it's usual for auto-fill in browser, suggest Name, email. But by using the auto-fill the username can be automatically changed too! So users don't even notice that they username is changed. We experience this issue with every other user. So it's very common. |
Maybe this option (disable changing usernames) can be in a Che configuration option? In Hosted Toolchain we don't have the issue with invalid usernames. All openshift usernames are guaranteed to be be valid for Che. |
For me disabling @RickJWagner |
@ibuziuk @alexeykazakov @RickJWagner |
@tolusha validation is a good compromise and should be ported to CRW as well. Is there any reason why we should not port the upstream PR to the CRW identity provider image? |
Just for clarification. In Hosted Toolchain the problem is not that users can set Che username to a not DNS complaint one. The problem is that users can set Che username which won't match the OpenShift username. |
@alexeykazakov |
@l0rd |
I don't think neither. But that doesn't justify the fact that a feature is available upstream but not downstream. |
@l0rd I see. I will check what we can do here. |
I've created issue to add changed to CRW as well. |
That new theme will be available in Che operator 7.19, right? |
@alexeykazakov |
@tolusha could you please clarify how to enable the theme for making the username uneditable in 7.19.0 ? |
@ibuziuk |
Is your enhancement related to a problem? Please describe.
We have a Che operator 7.14.2 installed an OCP cluster with the following configuration:
Each user has
<openshift-username>-code
namespace pre-created.When a user is trying to login into Che Dashboard the very first time Che's Keycloak shows the following form:
And now if the user edit the username and use another username (not OpenShift username) then he won't be able to start a workspace because Che tries to use not-existing namespace to create a workspace:
<che-username>-code
instead of `-code.Describe the solution you'd like
Ideally, user should not be asked to re-enter username, email, names when loging to Che at all. Che just should use the user from OpenShift. Email and Name is not available in OpenShift, but why Che needs them? If it needs them for Git commits or something then it should ask it when/if actually needed. Not in advance.
But at least we should have an option to forbid users to change usernames during Che login because it breaks users.
The text was updated successfully, but these errors were encountered: