Gateways
Gateways control how your sandbox connects to external services. They provide network policies and automatic credential injection, making it easy to securely access APIs, databases, and other services from your sandbox.
What Gateways Do
When you configure a gateway profile, Islo:
- Applies network policies - Controls which external endpoints your sandbox can reach
- Injects credentials - Automatically provides API keys, tokens, and secrets
- Routes traffic - Can proxy requests through specific endpoints
This means your sandbox gets secure access to external services without you manually managing credentials or network configuration.
Using Gateways
Via CLI Flag
Specify a gateway profile when using a sandbox:
Via islo.yaml
Set a default gateway for your project:
Then all islo use commands will use that gateway:
Overriding Config
The CLI flag overrides islo.yaml:
Common Use Cases
API Access
Your gateway can provide API access for services your code needs:
Your code can make API calls normally - the gateway handles authentication at the network level:
Database Connections
Access databases through gateway-controlled connections:
The gateway handles:
- Authentication at the connection level
- Routing through secure tunnels
- Enforcing read-only access policies
Third-Party Services
Access external services with pre-configured credentials:
Security Considerations
Gateways are designed for security:
- Credentials are never exposed - Authentication happens at the host/network level, not in the sandbox environment
- Network policies prevent leakage - Sandboxes can only reach approved endpoints
- Audit logging - All external access is logged
- Scoped access - Different profiles for different access levels
Best Practices
- Use the least privileged gateway - Don’t use
production-apiswhenstaging-apisworks - Set gateway in islo.yaml - Makes it clear what access the project needs
- Document gateway requirements - Help teammates know which profile to use
Configuration Reference
In islo.yaml
CLI Options
Precedence
- CLI flag (
--gateway-profile) - highest priority islo.yaml(gateway_profilefield)- No gateway (default)
Troubleshooting
”Gateway profile not found”
The specified profile doesn’t exist or you don’t have access:
Connection Refused
The gateway’s network policy may not allow the endpoint:
- Verify the endpoint is included in the gateway’s allowlist
- Check if you need a different gateway profile
API Calls Failing Authentication
Requests aren’t being authenticated by the gateway:
- Confirm the gateway is configured for that service
- Check if you’re using the correct gateway profile
- Verify the endpoint is included in the gateway’s scope