-
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
Allow Che 7 Git + SSH Flow #13494
Comments
@vparfonov @evidolob can you please review and split up the critical tasks (🦄) amongst your teams? |
@l0rd I thought git+ssh was working on che-theia. What are the steps used to have it "not working" ? |
@l0rd OK somehow the previous fix has been lost, will fix it. |
FYI SSH plugin for shh key management use wsagent at the moment |
@vparfonov as a first step a user need to be able to:
Adding a command to generate the key-pair is something that can be done as second step: initially we can request users to generate the key pair manually. |
We have reviewed this with @vparfonov and we are not going to address the problem of the git+ssh within a container where the user doesn't exist (arbitrary user). @vparfonov is going to create an issue instead that is going to be added to the known issue section in the documentation. |
We have discussed that the current behavior of the SSH plugin should be changed.
|
… the #13494 (comment) Signed-off-by: Vitalii Parfonov <vparfono@redhat.com>
…g to the the #13494 (comment) (#13901) * Set wildcard host name if key name start from 'default-' according to the #13494 (comment) Signed-off-by: Vitalii Parfonov <vparfono@redhat.com>
@ericwill what is currently missing is checking if the user has privileges to clone at the startup of the workspace. Current UX is not ideal if you click on a factory link of a devfile with a git+ssh URL and you do not have the SSH key uploaded on the git server yet. |
@ericwill in this sprint and next one platform team is working on something that is related to that |
What flow we can implement at the moment: If the devfile does not contain projects with git+ssh URLs, we clone the projects as we are doing now. In case of git+ssh we will:
We can implement everything in |
To me it is quite unclear what flow we want to implement. Github and bitbucket as far as I know could have https.
or we want to just support ssh in the devfile sources? |
I found figuring out how to set up SSH extremely difficult, and I'm still not sure my method is supposed to be allowed. With firefox latest, any click will mess up the flow for adding a key pair (e.g, no copy paste), and it's very difficult if not impossible to really use. But, there is vi, and there is ssh-agent in the IDE container so - what I do at this point is manually add my keys, lock down permissions, and then add them to the running agent, and am then able to work on private repositories without issue. This is a huge opportunity for adoption if it can be solved |
@jnach completly agree. The problem we have is that we have almost all the piece to have a proper git flow that works for standalone git or github projects (and maybe bitbucket). The current flow is not simple. I would nice that we put all the pieces together. |
The UX when cloning of Git repositories with SSH uri was improved and merged. |
A video demonstrating the current state https://www.youtube.com/watch?v=1Ki--hfqISs |
The problem
As mentioned in #12850 git+ssh is currently not working (cloning a project). A user is able to generate an SSH key pair with the ssh plugin (even if currently this plugin doesn't seems to be included in che-theia) but:
che-theia
doesn't support SSHThe proposed flow
Here is a list of steps/task of a git+ssh flow that I have splitted in 3 priority levels:
🦄critical for the GA: allow SSH key persistence and usage
🐴nice to have for the GA: automate for a better UX and get rid of the SSH plugin
🐮postponed after the GA: leverage GitHub token when available to automate even more
First time user login
At workspace creation:
At workspace cloning with git+ssh:
Misc
The text was updated successfully, but these errors were encountered: