- UI logins, including SSO users who belong to several organizations
- Requests made with an API key, including personal API keys
- Requests from your self-hosted agents to the Agent API
This page covers traffic coming into env zero. To let env zero’s outbound traffic reach your VCS or cloud resources, see IP addresses.
How the allowlist is enforced
A user who belongs to several organizations can’t log in from an IP address that any of those organizations’ allowlists excludes. This applies even if their other organizations have no allowlist.
Requests env zero makes during a deployment aren’t checked, such as OIDC token requests and module downloads from the private registry. SaaS agents aren’t checked either. Deployments on env zero-hosted runners keep working when your organization has an allowlist.
If env zero can’t read your organization’s allowlist, it denies the request.
Changes apply to the next login or request. An API key or self-hosted agent that already connected from an IP address you remove can keep working from that address for up to one hour.
Rule format
The allowlist is theipAllowlist organization policy, a list of rules. A request is allowed if its IP address matches any rule.
Every rule also takes
family, either ipv4 or ipv6. It defaults to ipv4, so set "family": "ipv6" on every IPv6 rule. env zero rejects a rule that is missing a required field or has a field that doesn’t belong to its type.
Set the allowlist
You also need your Organization ID.1
Send the allowlist
Call the Update Policy API with your rules:The request replaces the whole list. Other organization policies you leave out of the request don’t change.
2
Check the saved list
The Get Organization API returns the current rules, or
null if the organization has no allowlist:Remove the allowlist
Send an empty list. The organization accepts requests from any IP address again.Next steps
- Security overview - Review env zero’s security architecture.
- API keys - Create the keys the allowlist applies to.
- Self-hosted Kubernetes agent overview - Run deployments from within your own network.