mxc icon indicating copy to clipboard operation
mxc copied to clipboard

[WSLC] In-built proxy for networking

Open SohamDas2021 opened this issue 1 month ago • 1 comments

Migrated from ADO 64551769 (parent deliverable ADO 63911124 — [WSLC] Improvements to WSLC in MXC > 1.0).

Description of the new feature / enhancement

MXC builds its own proxy for WSLC and puts filtering per container in the proxy.

Proposed technical implementation details

No response

SohamDas2021 avatar Oct 10 '26 00:10 SohamDas2021

Implementation Ideas

Schema

Use the current networking fields instead of a separate allow/deny list for the built-in proxy.

Configs with CIDR filtering (or differing egress/ingress/hostLoopback values) automatically use the built-in proxy. Currently valid configs wouldn't use the proxy until updated to include CIDR filtering.

Ideas

The built-in proxy will be scoped to just CIDR filtering. No hostnames.

The proxy will be a sidecar container in the WSLC VM. This is possible thanks to https://github.com/microsoft/WSL/pull/42002.

In state-aware mode, each workload container gets its own sidecar container. This is b/c networks currently cannot be added to running containers. This can be revisited when WSLC makes changes in the future.

WSLC's limitations mean only TCP will be supported. No UDP or ICMP (ping) or any.

Open Questions

What should the sidecar container(s) run?

Port mapping compatibility?

Custom proxy (runtimeConfig.networkProxy) compatibility?

theelliotm avatar Oct 14 '26 22:10 theelliotm