- A client. It applies to every credential that client authenticates with: its Client API Key and any Client Session Token. It covers every way to use the client: the Client API, signing from the SDKs, and the Enclave MPC API.
- A Custodian API key (the Portal API Key your backend uses). It applies to every Custodian API request made with that key.
IP allowlists are most useful for clients that your own backend operates, such as treasury or hot wallets. A client used from your users’ devices has no fixed IP to list.
Set an allowlist on a client
- Log in to app.portalhq.io.
- Go to Clients and open the client.
- In the Security section, select Add IP Allowlist (or Edit IP Allowlist if one is set).
- Enter the IP addresses or CIDR ranges your servers send requests from, then select Save.
Set an allowlist on a Custodian API key
- Log in to app.portalhq.io.
- Go to Developer -> API Keys.
- In Custodian API Keys, select IP Allowlist on the key.
- Enter the IP addresses or CIDR ranges your servers send requests from, then select Save.
Entries
Each entry is an IPv4 or IPv6 address or a CIDR range, for example203.0.113.7, 198.51.100.0/24 or 2001:db8::/32. An allowlist holds up to 50 entries.
List the egress IP of every server that uses the client or key. The allowlist applies as soon as you save it, so a server that is missing from the list starts failing right away.
Who can change an allowlist
Allowlists can only be changed from the Portal dashboard, never with an API key. A leaked credential can’t be used to add an attacker’s IP or to remove the allowlist. In your Production environment, changing an allowlist also asks for a code from the authenticator app you set up under Two-Factor Authentication in your dashboard profile. Every change is recorded in your audit log with the previous and new list.Rejected requests
A request from an IP that is not on the allowlist is rejected with HTTP403 before it reaches the endpoint:
400 with its usual error shape and the id IP_NOT_ALLOWED.
When you call the Enclave MPC API, Portal checks the IP of the server that called the Enclave, not the Enclave’s own IP. Add your servers’ IPs to the allowlist, not Portal’s.