Skip to content

Conversation

@cpuguy83
Copy link
Member

[WIP] -- DO NOT MERGE

Adds an API endpoint for proxying socket conns from the client.
This allows a client to forward a local socket (such as an SSH agent
sock or an X11 socket) into a running container.

This is currently just POC code, and it's not actually forwarding to the
container, only to the host for simplicity while getting the connections
actually working.

Idea here is that any of the client commands that attach to the
container in some way (exec, attach, run, build -- maybe) can take this
new optional argument --forward-socket <scheme>://<socket>

Signed-off-by: Brian Goff cpuguy83@gmail.com

[WIP] -- DO NOT MERGE

Adds an API endpoint for proxying socket conns from the client.
This allows a client to forward a local socket (such as an SSH agent
sock or an X11 socket) into a running container.

This is currently just POC code, and it's not actually forwarding to the
container, only to the host for simplicity while getting the connections
actually working.

Idea here is that any of the client commands that attach to the
container in some way (exec, attach, run, build -- maybe) can take this
new optional argument `--forward-socket <scheme>://<socket>`

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@cpuguy83
Copy link
Member Author

Also currently I am able to get a request to the forwarded socket, but not back from.... but lmk if this is desirable and I can continue working on it.

Could at least solve the SSH secrets issue.

@cpuguy83 cpuguy83 changed the title [WIP] Add local (client-side) sockets to container [WIP] Add forwarding local (client-side) sockets to container Jan 25, 2016
@cpuguy83
Copy link
Member Author

Closing since this is just never going to work.
I can get the connections hooked up, but the issue is getting the socket into the container, which is particularly both hacky and difficult since unix sockets have a max path size.

@cpuguy83 cpuguy83 closed this Jan 29, 2016
@cpuguy83 cpuguy83 deleted the forward_socket branch January 29, 2016 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants