Allow runsc to connect to an external proxy via UDS with --network-uds-path. - #14862
Open
copybara-service[bot] wants to merge 1 commit into
Open
copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
copybara-service
Bot
force-pushed
the
test/cl984053710
branch
from
September 23, 2026 17:06
25c7596 to
8e9c9fb
Compare
--uds-path is set.--network-uds-path.
…ds-path`. Adds a `--network-uds-path` flag that points at an external UDS. When set: - runsc connects to that socket and donates the resulting FD to the sentry as the primary network interface instead of creating an AF_PACKET socket. - configures the primary fdbased link as an IP-only link. - the socket must be SOCK_SEQPACKET because the sentry exchanges IP packets with one packet per datagram. - `--network-uds-path` is only supported with `network=sandbox` mode. Link offload settings (such as MTU, GSO, GRO, checksum offload) are not negotiated over the socket and must be agreed out-of-band with the peer. In this mode, the external proxy connecting to the sentry should handle all the egress filtering and blocking of any traffic (if required). Runsc will forward all the traffic to that external proxy when `network-uds-path` is set. PiperOrigin-RevId: 984053710
copybara-service
Bot
force-pushed
the
test/cl984053710
branch
from
September 23, 2026 17:13
8e9c9fb to
a884993
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow runsc to connect to an external proxy via UDS with
--network-uds-path.Adds a
--network-uds-pathflag that points at an external UDS.When set:
the primary network interface instead of creating an AF_PACKET socket.
with one packet per datagram.
--network-uds-pathis only supported withnetwork=sandboxmode. Linkoffload settings (such as MTU, GSO, GRO, checksum offload) are not negotiated
over the socket and must be agreed out-of-band with the peer.
In this mode, the external proxy connecting to the sentry should handle all
the egress filtering and blocking of any traffic (if required). Runsc will
forward all the traffic to that external proxy when
network-uds-pathis set.