Skip to content

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

docs: link relay concept, note HTTP forwarding for non-TCP resources, and replace control/data-plane jargon with plain connection names

Claudee2847e8692bc
diff --git a/docs/documentation/platform/gateways/network-architecture.mdx b/docs/documentation/platform/gateways/network-architecture.mdx
index 236ac43ea1..cb34f2e8af 100644
--- a/docs/documentation/platform/gateways/network-architecture.mdx
+++ b/docs/documentation/platform/gateways/network-architecture.mdx
@@ -4,7 +4,7 @@ sidebarTitle: "Network Architecture"
description: "Ports, egress requirements, and the relay tunnel that connect the Gateway to Infisical"
---
-The Gateway is deployed inside your private network and makes **only outbound connections** — it never accepts inbound connections. It reaches Infisical through a **relay server** using an **SSH reverse tunnel over TCP**, so the platform can access your private resources (databases, internal APIs) without any inbound firewall rules. All traffic through the relay is double-encrypted, and the relay only routes traffic — it cannot decrypt it.
+The Gateway is deployed inside your private network and makes **only outbound connections** — it never accepts inbound connections. It reaches Infisical through a [**relay server**](/documentation/platform/gateways/relay-deployment/overview) using an **SSH reverse tunnel over TCP**, so the platform can access your private resources (databases, internal APIs) without any inbound firewall rules. All traffic through the relay is double-encrypted, and the relay only routes traffic — it cannot decrypt it.
## Connection model
@@ -15,7 +15,7 @@ flowchart LR
direction TB
GW["Infisical Gateway"]
RES[("Private Resource")]
- GW -->|"resource port<br/>(e.g. 5432)"| RES
+ GW -->|"TCP or HTTP forwarding"| RES
end
PLAT["Infisical Platform"]
RELAY(["Relay Server"])
@@ -28,10 +28,10 @@ flowchart LR
| Connection | Source | Destination | Port | Protocol | Purpose |
|---|---|---|---|---|---|
-| Tunnel (data plane) | Gateway | Relay server | 2222 | TCP (SSH) | Establishes the SSH reverse tunnel — **egress** |
-| Control plane | Gateway | Infisical instance host | 443 | TCP (HTTPS) | API communication + certificate requests — **egress** |
+| Relay tunnel | Gateway | Relay server | 2222 | TCP (SSH) | Establishes the SSH reverse tunnel — **egress** |
+| Infisical API | Gateway | Infisical instance host | 443 | TCP (HTTPS) | API communication + certificate requests — **egress** |
| Platform ↔ relay | Infisical Platform | Relay server | 8443 | TCP + TLS | Platform connects to the relay; traffic is then routed over the gateway's existing tunnel |
-| Resource access | Gateway | Private resource | the resource's own port (e.g. 5432) | TCP | Gateway proxies platform requests to the internal service — **local** |
+| Resource access | Gateway | Private resource | the resource's own port (e.g. 5432) | TCP or HTTP | Gateway forwards platform requests to the internal service — raw TCP for most resources (e.g. databases), HTTP for resources like Kubernetes — **local** |
## Firewall / egress allowlist
@@ -59,6 +59,10 @@ If you run a self-hosted relay, that host needs:
No. The Gateway makes only outbound connections (TCP 2222 to the relay and TCP 443 to the Infisical API). The platform reaches the Gateway back over its own outbound SSH tunnel via the relay, so no inbound firewall rules are needed.
</Accordion>
+ <Accordion title="Does the Gateway only proxy raw TCP?">
+ No. Depending on the target resource, the Gateway forwards either raw TCP or HTTP. Most resources (for example databases like PostgreSQL on 5432) are proxied as raw TCP, while resources such as Kubernetes are reached over HTTP forwarding. In both cases the Gateway connects to the resource on its own port inside your private network.
+ </Accordion>
+
<Accordion title="Which relay address do I need to allowlist?">
With the default **Auto Select Relay**, the Gateway may connect to, and fail over between, any managed relay Infisical operates for your region, so a strict outbound TCP 2222 allowlist must include every managed relay endpoint. You can find these under **Organization Settings → Networking**, or ask Infisical support. To allowlist a single address instead, pin the Gateway to one relay at enrollment with the `--target-relay-name` option; this removes automatic failover to other relays.
</Accordion>