
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.
Core Components
The Gateway system consists of two primary components working together to enable secure network access:- Gateway
- Relay Server
A Gateway is a lightweight service that you deploy within your own network infrastructure to provide secure access to your private resources. Think of it as a secure bridge between Infisical and your internal systems.Gateways must be deployed within the same network where your target resources are located, with direct network connectivity to the private resources you want Infisical to access.
For different networks, regions, or isolated environments, you’ll need to deploy separate gateways.Core Functions:
- Network Placement: Deployed within your VPCs, data centers, or on-premises infrastructure where your private resources live
- Connection Model: Only makes outbound connections to Infisical’s relay servers, so no inbound firewall rules are needed
- Security Method: Uses SSH reverse tunnels with certificate-based authentication for maximum security
- Resource Access: Acts as a proxy to connect Infisical to your private databases, APIs, and other services
How It Works
The Gateway system uses SSH reverse tunnels for secure, firewall-friendly connectivity:- Gateway Registration: The gateway establishes an outbound SSH reverse tunnel to a relay server using SSH certificates issued by Infisical
- Persistent Connection: The gateway maintains an open TCP connection with the relay server, creating a secure channel for incoming requests
- Request Routing: When Infisical needs to access your resources, requests are routed through the relay server to the already-established gateway connection
- Resource Access: The gateway receives the routed requests and connects to your private resources on behalf of Infisical