Skip to main content
An IP allowlist limits where a credential can be used from. If an attacker gets hold of a client’s key share and credentials, or one of your Custodian API keys, they can’t use them from anywhere else. You can set an allowlist on:
  • 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.
Allowlists are optional. A client or key without one accepts requests from any IP, so your end users’ wallets are not affected unless you set one on them.
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

  1. Log in to app.portalhq.io.
  2. Go to Clients and open the client.
  3. In the Security section, select Add IP Allowlist (or Edit IP Allowlist if one is set).
  4. Enter the IP addresses or CIDR ranges your servers send requests from, then select Save.

Set an allowlist on a Custodian API key

  1. Log in to app.portalhq.io.
  2. Go to Developer -> API Keys.
  3. In Custodian API Keys, select IP Allowlist on the key.
  4. Enter the IP addresses or CIDR ranges your servers send requests from, then select Save.
To remove an allowlist, delete every entry and save. The client or key then accepts requests from any IP again.

Entries

Each entry is an IPv4 or IPv6 address or a CIDR range, for example 203.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 HTTP 403 before it reaches the endpoint:
SDK signing and Enclave MPC API requests are also rejected before any signing starts. The Enclave MPC API returns HTTP 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.

What an allowlist does not cover

A client’s allowlist applies to that client’s own credentials. It doesn’t apply to Custodian API requests about the client, such as creating a Client Session Token or turning signing back on. Those are checked against the allowlist of the Custodian API key that makes them, so set an allowlist on your Custodian API keys as well as your clients. An allowlist stops credentials from being used outside your network. It doesn’t stop an attacker who is already inside your network and sends requests from an allowed IP. Keep the credentials and key shares for these clients in systems that only your signing services can reach.