infisical gateway
Run the Infisical gateway or manage its systemd service
Description
Run the Infisical gateway in the foreground or manage its systemd service installation. The gateway allows secure communication between your self-hosted Infisical instance and client applications.
Subcommands & flags
infisical gateway
infisical gateway
Run the Infisical gateway in the foreground. The gateway will connect to the relay service and maintain a persistent connection.
Authentication
The Infisical CLI supports multiple authentication methods. Below are the available authentication methods, with their respective flags.
Universal Auth
Universal Auth
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.
Native Kubernetes
Native Kubernetes
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.
Native Azure
Native Azure
The Native Azure method is used to authenticate with Infisical when running in an Azure environment.
Native GCP ID Token
Native GCP ID Token
The Native GCP ID Token method is used to authenticate with Infisical when running in a GCP environment.
GCP IAM
GCP IAM
Native AWS IAM
Native AWS IAM
The AWS IAM method is used to authenticate with Infisical with an AWS IAM role while running in an AWS environment like EC2, Lambda, etc.
OIDC Auth
OIDC Auth
JWT Auth
JWT Auth
Token Auth
Token Auth
You can use the INFISICAL_TOKEN
environment variable to authenticate with Infisical with a raw machine identity access token.
Other Flags
--domain
--domain
Domain of your self-hosted Infisical instance.
infisical gateway install
infisical gateway install
Install and enable the gateway as a systemd service. This command must be run with sudo on Linux.
Requirements
- Must be run on Linux
- Must be run with root/sudo privileges
- Requires systemd
Flags
--token
--token
The machine identity access token to authenticate with Infisical.
You may also expose the token to the CLI by setting the environment variable INFISICAL_TOKEN
before executing the install command.
--domain
--domain
Domain of your self-hosted Infisical instance.
Service Details
The systemd service is installed with secure defaults:
- Service file:
/etc/systemd/system/infisical-gateway.service
- Config file:
/etc/infisical/gateway.conf
- Runs with restricted privileges:
- InaccessibleDirectories=/home
- PrivateTmp=yes
- Resource limits configured for stability
- Automatically restarts on failure
- Enabled to start on boot
After installation, manage the service with standard systemd commands: