Gateways
A lightweight service you run inside your own network, next to the resources Infisical needs to reach. It can connect out to a relay, or listen for Infisical to connect to it.
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
[email protected] to purchase an enterprise
license.
How it works
A gateway runs in one of two modes, and they differ in which side opens the connection. See Choose a connection mode for picking between them.Relay mode
The gateway uses an SSH reverse tunnel, 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.
Direct listen mode
Infisical connects to the gateway, so there’s no relay in the path. Available on self-hosted Infisical only.- Registration. The gateway registers the listen address you set, and Infisical issues it a server certificate for that address.
- Listening. The gateway accepts inbound connections on that address, from the Infisical host only.
- Resource access. Infisical connects over mutually authenticated TLS, and the gateway connects to your private resource on its 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. A gateway running both modes is probed on each transport separately, so it stays healthy while either one works. Its detail page shows the two transports individually, which is how you tell a relay outage from a direct listen one. Relays send a heartbeat every 30 minutes and are marked unhealthy after an hour without one. 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.