kosa8 cloud egress set
Replace a sandbox's egress policy, at once
Usage#
kosa8 cloud egress set ID
--allow and --preset allow only what they list (no other internet); --internet lets everything out, with --deny blocking a few hosts; --no-internet cuts it off.
Options#
| Flag | Type | What it does | Default |
|---|---|---|---|
--allow | stringArray | allow this host, or *.domain (repeatable) | [] |
--deny | stringArray | block this host (repeatable) | [] |
--internet | bool | let everything out (with --deny for exceptions) | — |
--no-internet | bool | no internet except --allow and --preset | — |
--preset | stringArray | allow a preset, e.g. pypi, npm (repeatable; see egress presets) | [] |
Example#
kosa8 cloud egress set sbx_abc --no-internet --preset pypi kosa8 cloud egress set sbx_abc --no-internet --allow api.github.com --allow '*.anthropic.com' kosa8 cloud egress set sbx_abc --internet --deny 169.254.169.254