Skip to main content
An IP allowlist restricts where your organization can be reached from. When your organization has one, env zero accepts the following only from an IP address on the list:
  • 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
An organization without an allowlist accepts requests from any IP address. This is the default.
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 the ipAllowlist 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 need the Edit Organization Settings permission, for example an Admin API key.
Include every address you log in and call the API from. If the list excludes them, you lose access to the organization and need to contact support to restore it.
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:
If you’d rather have env zero configure the allowlist, contact your account team or support.

Remove the allowlist

Send an empty list. The organization accepts requests from any IP address again.

Next steps