0.26.0

Network

Package: flyteplugins.union.sandbox

Outbound network for a sandbox. Default: none (loopback only).

Enforced outside the sandbox, on every TCP and UDP flow: the microVM has no network device, and its traffic leaves only through the node’s agent. Private ranges (the cluster’s pods, services and nodes) are refused unless allow_cidrs names them; link-local addresses (the cloud metadata server) and loopback are always refused. TLS is end to end.

Parameters

class Network(
    open: bool = False,
    allow_domains: Tuple[str, ...] = (),
    allow_cidrs: Tuple[str, ...] = (),
)
Parameter Type Description
open bool
allow_domains Tuple[str, ...]
allow_cidrs Tuple[str, ...]

Methods

Method Description
allow() Outbound only to domains and cidrs.
blocked() No outbound network: the default.
internet() All outbound traffic, except the ranges above.
pypi() Only PyPI, for pip install.

allow()

def allow(
    *domains: str,
    cidrs: Tuple[str, ...] = (),
) -> Network

Outbound only to domains and cidrs.

Parameter Type Description
*domains str
cidrs Tuple[str, ...]

blocked()

def blocked()

No outbound network: the default.

internet()

def internet()

All outbound traffic, except the ranges above.

pypi()

def pypi()

Only PyPI, for pip install.