Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

docs: clarify relay allowlist for auto-select and self-hosted-relay inbound requirement

Claude12dbeaa95b06
diff --git a/docs/documentation/platform/gateways/network-architecture.mdx b/docs/documentation/platform/gateways/network-architecture.mdx
index b1b55804c0..f323b72cf6 100644
--- a/docs/documentation/platform/gateways/network-architecture.mdx
+++ b/docs/documentation/platform/gateways/network-architecture.mdx
@@ -50,7 +50,11 @@ On the Gateway host, allow **outbound** access only:
- **TCP 2222** to the relay server (managed relay IP/hostname, or your self-hosted relay's address)
- **TCP 443** to the Infisical instance host (`app.infisical.com` for US, `eu.infisical.com` for EU, or your self-hosted domain)
-No inbound rules are required. The relay's IP/hostname is shown in your Infisical dashboard under **Organization Settings → Networking** when you generate the gateway deploy command — allowlist that specific address.
+No inbound rules are required.
+
+With the default **Auto Select Relay** option (no relay pinned at enrollment), the gateway picks a healthy managed relay and will switch to another one if the current relay becomes unreachable — so there is no single relay address to allowlist. In a strict-egress environment your **TCP 2222** allowlist must therefore include *every* managed relay endpoint Infisical operates for your region, since the gateway may connect to or fail over to any of them. Obtain the full list from **Organization Settings → Networking**, or from Infisical support. Do not hardcode a single relay IP and assume it is stable.
+
+Alternatively, pin the gateway to one relay at enrollment by selecting a specific relay (the CLI `--target-relay-name` flag). The gateway then uses only that relay, so you only need to allowlist that single address — at the cost of losing automatic failover to other relays.
## Self-hosted relay (optional)
@@ -67,4 +71,4 @@ Not currently. The Gateway's connection to the relay is a raw **SSH tunnel over
If an HTTP proxy is mandatory in your environment, you have two options:
- Allow the Gateway's two outbound rules (**TCP 2222** and **TCP 443**) to bypass the proxy for the relay and Infisical endpoints.
-- Deploy a **self-hosted relay** inside your own network so the TCP 2222 tunnel stays internal, and only TCP 443 needs to leave your network.
+- Deploy a **self-hosted relay** inside your own network so the TCP 2222 tunnel stays internal, and only TCP 443 needs to leave your network. Note that the Infisical platform must still reach that relay on **inbound TCP 8443**, so the relay needs a network path from the platform (a publicly reachable or port-forwarded 8443 endpoint). This only removes *all* external egress when you also self-host the Infisical platform inside the same network.