Skip to content

forwarding host TCP/UDP addresses to container - #4078

Closed
vito wants to merge 1 commit into
dagger:mainfrom
vito:host-tcp-udp
Closed

vito wants to merge 1 commit into
dagger:mainfrom
vito:host-tcp-udp

Conversation

@vito

@vito vito commented Dec 1, 2022 •

Copy link
Copy Markdown
Contributor

A pretty straightforward tweak to #4025 to support forwarding TCP/UDP addresses into the container in addition to Unix socket paths.

Schema changes:

extend type Host {
  "Access a TCP host:port address via the host network"
  tcpSocket(address: String!): Socket!

  "Access a UDP host:port address via the host network"
  udpSocket(address: String!): Socket!
}

This is similar to the proposal in #3691 (comment) except it allows full specification of host:port rather than being restricted to a port the host's loopback. It's a trivial implementation difference that could allow for some interesting use cases, like forwarding a private network into the container (imagining containers are normally isolated from it, anyway).

Note that we still only support forwarding to Unix sockets into the container. Forwarding to TCP/UDP in the container will require an orthogonal change to the shim as mentioned in the previously linked proposal (shim listens on loopback TCP/UDP and just forwards to a local obfuscated Unix socket).

Bikeshedding encouraged!

@vito
vito marked this pull request as ready for review December 1, 2022 23:12
@vito
vito requested review from aluzzardi, shykes and sipsma December 1, 2022 23:12
@shykes

shykes commented Dec 2, 2022

Copy link
Copy Markdown
Contributor

Bikeshedding encouraged!

Be careful what you wish for ;)

I will create an issue summarizing the state of the "proxy forwarding" feature as I see it, across all permutations. And share my thoughts there.

@shykes shykes mentioned this pull request Dec 2, 2022
@shykes

shykes commented Dec 2, 2022

Copy link
Copy Markdown
Contributor

➡️ #4080

@github-actions

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions

Copy link
Copy Markdown
Contributor

This PR was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions Bot closed this Dec 23, 2022
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