Gateways
Gateways control how your sandbox connects to external services. A gateway profile is a network policy plus an ordered set of rules — each rule matches outbound traffic by host (and optionally path/method) and decides whether to allow it, deny it, or inject credentials before forwarding.
What Gateways Do
When a sandbox is attached to a gateway profile, Islo:
- Applies network policies — controls which external endpoints the sandbox can reach.
- Injects credentials — automatically attaches API keys, tokens, and secrets to outbound requests.
- Routes traffic — proxies through Islo’s gateway so requests can be audited and rate-limited.
Credentials never reach the sandbox process — authentication happens at the host/network layer.
Using a Gateway Profile
Via CLI flag
Via islo.yaml
Subsequent islo use calls without --gateway-profile pick up the default from islo.yaml. CLI flag wins when both are set.
Precedence
--gateway-profileCLI flag — highest prioritygateway_profile:inislo.yaml- No gateway (default)
Managing Gateway Profiles
Create a profile
List profiles
Add --output json for a structured array.
Show a profile
Prints profile settings and its current rules.
Update a profile
Remove a profile
-f / --force skips the confirmation prompt.
Managing Rules
Rules are evaluated top-to-bottom by priority. The first match wins; if nothing matches, the profile’s --default-action decides.
List rules
Add a rule
Examples:
Update a rule
Most flags from add-rule are available again to change the value. Use the matching --clear-* flag to remove a field entirely.
Remove a rule
Reorder rules
Assign explicit priorities in one call:
--rule is repeatable; each value is <rule-id>=<priority>.
Output
All gateway subcommands print human-readable tables by default. Add --output json to any of them for structured output suitable for scripts and AI agents.
Common Workflows
Build a deny-by-default profile
Inject credentials so sandbox code doesn’t see the key
Then run the sandbox with the profile:
Code inside the sandbox calls https://api.openai.com/... without any API key — the gateway adds the bearer token in flight.
Troubleshooting
See Troubleshooting → Gateways for unknown profiles, blocked requests, and credential-injection problems.