Skip to main content
Network policies restrict which networks an access token can be used from.

Create a network policy

Allow CIDR blocks with --cidr, and AWS VPC endpoints with --aws-vpce. Both are repeatable, and a request matching any of them is accepted:
Without --cidr, tokens bound to the policy cannot be used over the public internet. Without --aws-vpce, they cannot be used through PrivateLink. The full <slug>.<nonce> reference of the new policy is printed.

Issue a token with a network policy

List network policies

Use --prefix to filter by slug.

Get a network policy

Delete a network policy

A policy cannot be deleted while an access token is bound to it. Revoke those tokens first.

Denied requests

When a token’s network policy rejects a request, the error shows the address S2 saw:
See which addresses a token was accepted and denied from with: