Skip to content
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

Merged
merged 1 commit into from
Nov 10, 2016

Conversation

benoitf
Copy link
Contributor

@benoitf benoitf commented Nov 9, 2016

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]

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]>
@benoitf benoitf added this to the 5.0.0-M7 milestone Nov 9, 2016
@benoitf benoitf added kind/bug Outline of a bug - must adhere to the bug report template. sprint/current status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. labels Nov 9, 2016
@benoitf benoitf changed the title CODENVY-804 : Use of userManager to get the userId CODENVY-804 : Use of userManager to get the userId (when injecting ssh keys) Nov 9, 2016
@benoitf
Copy link
Contributor Author

benoitf commented Nov 9, 2016

@sleshchenko kind of old bug, if you can review my PR

@TylerJewell
Copy link

Yes - approved.

@codenvy-ci
Copy link

Copy link
Member

@sleshchenko sleshchenko left a 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.

@benoitf
Copy link
Contributor Author

benoitf commented Nov 10, 2016

linked to #3042

@benoitf benoitf self-assigned this Nov 10, 2016
@benoitf benoitf merged commit 74609d3 into master Nov 10, 2016
@benoitf benoitf removed sprint/current status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. labels Nov 10, 2016
@benoitf benoitf deleted the CODENVY-804 branch November 10, 2016 09:05
@bmicklea bmicklea mentioned this pull request Nov 16, 2016
66 tasks
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants