Skip to content

feat: exec-chaining for devcontainer on remote ssh - #291

Open
MythreyaK wants to merge 5 commits into
jeanp413:masterfrom
MythreyaK:users/mythreyak/exec
Open

MythreyaK wants to merge 5 commits into
jeanp413:masterfrom
MythreyaK:users/mythreyak/exec

Conversation

@MythreyaK

@MythreyaK MythreyaK commented May 30, 2026 •

Copy link
Copy Markdown

I have a basic devcontainer extension here, and wanted to get devcontainer on a remote ssh machine working. There is a lot of work left to be done on the devcontainer parts itself, but I was hoping we can start planning towards chaining.

The corresponding branch on the devcontainer side is here. Install both, and open a workspace with a devcontainer configuration. You should be able to "reopen in container".

Note: Updated after a rewrite of both this PR and the supporting extension.

@MythreyaK MythreyaK changed the title feat: exec-chaining feat: exec-chaining for devcontainer on remote ssh May 30, 2026
@MythreyaK
MythreyaK marked this pull request as ready for review June 2, 2026 03:22
@MythreyaK

Copy link
Copy Markdown
Author

@jeanp413 @daiyam hope you don't mind the ping : )

@daiyam

daiyam commented Jul 3, 2026 •

Copy link
Copy Markdown
Collaborator

I will need some time to review your PR and evaluate the possible security issues from createExecServer.

Firstly, unedit package.json.
Secondly, I don't see any call to resolveExecServer() even in your project.

@MythreyaK

MythreyaK commented Jul 3, 2026 •

Copy link
Copy Markdown
Author

I will need some time to review your PR and evaluate the possible security issues from createExecServer.

Of course, yeah, not urgent. This isn't meant to be merged as is, so I should probably make this a draft. Just wanted to discuss.

Firstly, unedit package.json.

I originally made that change to differentiate the local build from the upstream version. Will do both of those tomorrow 👍.

Secondly, I don't see any call to resolveExecServer() even in your project.

It should be on this branch.

I'm working on a rewrite of the devcontainer extension so I'll update this pr as well once it's a little more ready.

@daiyam

daiyam commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Secondly, I don't see any call to resolveExecServer() even in your project.

It should be on this branch (this commit).

It's an API from VSCode.

@MythreyaK

Copy link
Copy Markdown
Author

resolveExecServer is implemented in the first hop, so this PR. Once the SSH connection is established, the devcontainer extension uses it for exec-spawn on the remote machine, is my mental model of the API. Please correct me if I'm wrong here!

@MythreyaK
MythreyaK force-pushed the users/mythreyak/exec branch from baafac8 to b1e3429 Compare July 4, 2026 04:04
@MythreyaK
MythreyaK marked this pull request as draft July 4, 2026 04:05
@daiyam daiyam added this to the N+2 milestone Aug 3, 2026
@MythreyaK
MythreyaK force-pushed the users/mythreyak/exec branch from b1e3429 to 301eb50 Compare August 26, 2026 03:14
@MythreyaK
MythreyaK marked this pull request as ready for review August 26, 2026 03:14
@MythreyaK

Copy link
Copy Markdown
Author

This should be ready for review and testing it out. You can download the CI build artifact from this PR (MythreyaK/open-remote-devcontainer#2) here to test both SSH and devcontainer together.

@MythreyaK

Copy link
Copy Markdown
Author

Been trying to see if I could roll in windows support too ... Haven't had a chance to test it yet, but if you'd prefer to see it supported in this PR (instead of in a new one), do let me know.

@daiyam

daiyam commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

There is already several PRs for windows but take a look at #343

I really need to take some times and review all those PRs and yours.

@MythreyaK

Copy link
Copy Markdown
Author

There is already several PRs for windows but take a look at #343

Thanks for the pointer!

I really need to take some times and review all those PRs and yours.

Sure, sounds good, thanks for your time!

@MythreyaK

Copy link
Copy Markdown
Author

Ran into mscdex/ssh2#1396 on https://github.com/jeanp413/ssh2.

ssh2 in this extension might need a bump 🤔?

@MythreyaK
MythreyaK force-pushed the users/mythreyak/exec branch from 55aa1a8 to b6cef11 Compare October 8, 2026 07:35
@daiyam daiyam modified the milestones: N+1, N+2 Oct 8, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants