Gateways
A lightweight service you run inside your own network, next to the resources Infisical needs to reach. It only makes outbound connections, so no inbound firewall rules are needed.
Relays
The routing layer between Infisical and your gateways. Passes encrypted traffic through without storing or inspecting it. Use the managed relays, or run your own closer to your infrastructure.
Gateway is a paid feature available under the Enterprise Tier for Infisical
Cloud users. Self-hosted Infisical users can contact
sales@infisical.com to purchase an enterprise
license.
How it works
The gateway system uses SSH reverse tunnels, so connectivity works without changing inbound firewall rules:
- Registration. The gateway opens an outbound SSH reverse tunnel to a relay, using an SSH certificate issued by Infisical.
- Persistent connection. The gateway holds that TCP connection open, giving Infisical a channel it can send requests down.
- Request routing. When Infisical needs one of your resources, the request travels through the relay and into the tunnel that is already established.
- Resource access. The gateway receives the request and connects to your private resource on Infisical’s behalf.
Health checks
Gateways send a heartbeat every 3 minutes, each carrying a TTL that says how long the gateway should be treated as healthy. If no heartbeat arrives before the TTL expires, the gateway is marked unhealthy. Relays send hourly heartbeats and are marked unhealthy if one is missed. Infisical notifies all organization admins of unhealthy gateways and relays by email and in-app notification.High availability
- Relay failover. Gateways set to select a relay automatically will move to a healthy relay if the current one becomes unreachable. No configuration needed.
- Gateway pools. For production, group gateways into a pool so the platform routes through a healthy member when one goes down.