-
Notifications
You must be signed in to change notification settings - Fork 452
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
[gitpod-desktop] Connect using ssh gateway #346
Conversation
@jeanp413 are the testing steps just to try to connect to local VS Code using this code of the extension? |
Added test steps, I'll generate a vsix file |
There's some issue with dependencies, gitpot-protocol is installing a really old version even though it's main on package.json 🤔 I'll look into it later |
Added vsix |
Updated vsix |
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.
Generally great work, I'm not sure about session management.
The original idea that we have separate 2 flows:
- a user uses browser as a primary UI
- a user uses VS Code
For former settings should not be relevant at all. It used to work even without gitpod.host setting. Latter we will work later, i.e. allow to manage workspaces and start from VS Code when settings are important. We design the same way for other clients like JetBrains.
With that PR it seems that browser flow will swap configurations which is not really great. Maybe we don't need to use VS Code session management API, but use internal? It won't mess with UI and just resolve credentials for one time connection.
For me auth did not work with existing Gitpod account granted for Settings Sync did not work: I wonder do we need to change something here: https://github.com/gitpod-io/gitpod/blob/63d48ab3a25128e54d23559f07b970d4985ef519/components/server/src/oauth-server/db.ts#L60-L73 ? |
yeah I also was wondering that but it seems it's not respected 🤔 the session for ssh has a scope is not listed there but it worked just fine from my tests, does it always fail for you? |
Can we check if these issues:
Will be closed with this PR? |
No it won't fix them, if they use local app for whatever reason (self hosted for example) the bugs will be there |
774b8df
to
2a0b515
Compare
I think we can close them and say that such self hosted installations should allow SSH direct. We are going to remove local app integration after couple months and should send this signal to our users. There will be in product notification whenever one connects over local app, but also via closed issues. |
2a0b515
to
be36d5b
Compare
We need to add a smoke test of SSH connection and fallback to the local app for now with proper warning. see internal thread |
@jeanp413 just sump up different points done internally:
|
Let's do this after we move this to it's own repo, after that you should just checkout this branch and then press |
115908c
to
e29e38c
Compare
You mean show a warning notification with a link to the issue? |
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.
Looks good generally, left comments about docs, analytics and ssh fingerprint.
I only download latest vsix file then install and test, from the user's point of view, this is a really big improvement, both in terms of speed and experience Thank you @jeanp413 |
e3682a7
to
3dd5bb0
Compare
Please add mosh suport, for roaming/intermittent connectivity |
@gerardo-junior Is it related to VS Code Desktop support via SSH? 🤔 If not please file an issue here: https://github.com/gitpod-io/gitpod/issues 🙏 |
It works super nicely for me and code looks top-notch. Let's finish up docs and ship it 🚀 |
I'm going to merge this, @iQQBot if you have more feedback lets continue in Slack |
fe1f3ee
to
612d9b8
Compare
Connects to gitpod workspace direclty using ssh gateway, local app is kept for backward compatibility
Related gitpod-io/gitpod#8513
How to test: