-
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
CODENVY-804 : Use of userManager to get the userId (when injecting ssh keys) #3036
Conversation
In che Owner of a machine or namespace of a workspace is the same than the user-id ssh service is using user-id while username is given so there is never a match It fixes it by asking userManager the userId. Change-Id: I30a20a52ffc3149a8f732edeb8ab86db827c9d91 Signed-off-by: Florent BENOIT <[email protected]>
@sleshchenko kind of old bug, if you can review my PR |
Yes - approved. |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/974/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK as temporary solution. Because we should fix the main problem of this bug here https://github.com/eclipse/che/blob/master/plugins/plugin-docker/che-plugin-docker-machine/src/main/java/org/eclipse/che/plugin/docker/machine/MachineProviderImpl.java#L313-313
We should set user id for machine creator.
linked to #3042 |
In che Owner of a machine or namespace of a workspace is the same than the user-id ssh service is using user-id while username is given so there is never a match It fixes it by asking userManager the userId. Change-Id: I30a20a52ffc3149a8f732edeb8ab86db827c9d91 Signed-off-by: Florent BENOIT <[email protected]>
What does this PR do?
What issues does this PR fix or reference?
codenvy/codenvy#804
Previous behavior
No ssh keys are injected (machine or workspace keys)
New behavior
SSH keys are injected as expected
In Eclipse Che, Owner of a machine or namespace of a workspace is the same than the user-id
ssh service is using user-id while username is given so there is never a match
It fixes it by asking userManager the userId.
Change-Id: I30a20a52ffc3149a8f732edeb8ab86db827c9d91
Signed-off-by: Florent BENOIT [email protected]