Use this file to discover all available pages before exploring further.
The Infisical Gateway provides secure access to private resources within your network without needing direct inbound connections to your environment. This method keeps your resources fully protected from external access while enabling Infisical to securely interact with resources like databases.Architecture Components:
Gateway: Lightweight agent deployed within your VPCs that provides access to private resources
Proxy: Identity-aware relay infrastructure that routes encrypted traffic (instance-wide or organization-specific)
Common use cases include generating dynamic credentials or rotating credentials for private databases.
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.
The Infisical Gateway is integrated into the Infisical CLI under the network gateway command, making it simple to deploy and manage.
You can install the Gateway in all the same ways you install the Infisical CLI—whether via npm, Docker, or a binary.
For detailed installation instructions, refer to the Infisical CLI Installation instructions.Prerequisites:
Proxy Server: Before deploying gateways, you need a running proxy server:
Infisical Cloud: Instance proxies are already available - no setup needed
Self-hosted: Instance admin must set up shared instance proxies, or organizations can deploy their own
Machine Identity: Configure a machine identity with appropriate permissions to create and manage gateways
Once authenticated, the Gateway establishes an SSH reverse tunnel to the specified proxy server, allowing secure access to your private resources.
Navigate to Organization Access Control in your Infisical dashboard.
Create a dedicated machine identity for your Gateway.
Best Practice: Assign a unique identity to each Gateway for better security and management.
2
Configure Authentication Method
You’ll need to choose an authentication method to initiate communication with Infisical. View the available machine identity authentication methods here.
3
Choose Your Proxy Setup
You have two options for proxy infrastructure:
Use Instance Proxies (Easiest)
Deploy Your Own Organization Proxy
Infisical Cloud: Instance proxies are already running and available - no setup required. You can immediately proceed to deploy gateways using these shared proxies.Self-hosted: If your instance admin has set up shared instance proxies, you can use them directly. If not, the instance admin can set them up:
This will install and start the Gateway as a secure systemd service that:
Runs with restricted privileges:
Runs as root user (required for secure token management)
Restricted access to home directories
Private temporary directory
Automatically restarts on failure
Starts on system boot
Manages token and domain configuration securely in /etc/infisical/gateway.conf
The install command requires:
Linux operating system
Root/sudo privileges
Systemd
The Gateway can be installed via Helm. Helm is a package manager for Kubernetes that allows you to define, install, and upgrade Kubernetes applications.For production deployments on Kubernetes, install the Gateway using the Infisical Helm chart:
Create a Kubernetes Secret containing gateway environment variables
The gateway supports all identity authentication methods through the use of environment variables.
The environment variables must be set in the infisical-gateway-environment Kubernetes secret.
The Universal Auth method is a simple and secure way to authenticate with Infisical. It requires a client ID and a client secret to authenticate with Infisical.
The Native Kubernetes method is used to authenticate with Infisical when running in a Kubernetes environment. It requires a service account token to authenticate with Infisical.
After installing the gateway, you can check the logs to ensure it’s running as expected.
kubectl logs deployment/infisical-gateway
You should see the following output which indicates the gateway is running as expected.
$ kubectl logs deployment/infisical-gatewayINF Starting gatewayINF Starting gateway certificate renewal goroutineINF Successfully registered gateway and received certificatesINF Connecting to proxy server infisical-start on 152.42.218.156:2222...INF Proxy connection established for gateway
For development or testing, you can run the Gateway directly. Log in with your machine identity and start the Gateway in one command:
Ensure the deployed Gateway has network access to the private resources you intend to connect with Infisical
The gateway must be able to reach the proxy server (outbound connection only)
Replace <proxy-name> with the name of your proxy server and <gateway-name> with a unique name for this gateway
5
Verify Gateway Deployment
To confirm your Gateway is working, check the deployment status by looking for the message “Gateway started successfully” in the Gateway logs. This indicates the Gateway is running properly. Next, verify its registration by opening your Infisical dashboard, navigating to Organization Access Control, and selecting the Gateways tab. Your newly deployed Gateway should appear in the list.