Skip to content

connector: add DialRun function

Arran Walker requested to merge ajwalker/dial-run into main

For WinRM, we already supported a version of "DialRun" but it was hard-coded to run fleeting-proxy and an internal concern.

This adds a new public API function for dialing a remote program, connecting a net.Conn up to the stdin/stdout of that process. This functionality is now used by fleeting-proxy, but for example, will also be used by Runner for doing the same for docker system dial-stdio which is similar to fleeting-proxy, but allows proxying stdin/stdout to the default docker daemon on the system, and is supported now by both SSH and WinRM.

Merge request reports

Loading