Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix(gateway): use gateway name in systemd start command and docs placeholders
bernie-ga2307c34aff6
diff --git a/docs/cli/commands/gateway.mdx b/docs/cli/commands/gateway.mdxindex 1a4d9f7385..ef4e3f2ea0 100644--- a/docs/cli/commands/gateway.mdx+++ b/docs/cli/commands/gateway.mdx@@ -6,12 +6,12 @@ description: "Run the Infisical gateway or manage its systemd service"<Tabs><Tab title="CLI">```bash- infisical gateway start <name> --enroll-method=token --token=<enrollment-token> --domain=<domain>+ infisical gateway start <gateway-name> --enroll-method=token --token=<enrollment-token> --domain=<domain>```</Tab><Tab title="systemd">```bash- sudo infisical gateway systemd install <name> --enroll-method=token --token=<enrollment-token> --domain=<domain>+ sudo infisical gateway systemd install <gateway-name> --enroll-method=token --token=<enrollment-token> --domain=<domain>```</Tab></Tabs>@@ -36,7 +36,7 @@ If you are moving from Gateway v1 to Gateway v2, this is NOT a drop-in switch. GRun the Infisical gateway component within your the network where your target resources are located. The gateway establishes an SSH reverse tunnel to a relay server and provides secure access to private resources within your network.```bash-infisical gateway start <name> --enroll-method=token --token=<enrollment-token> --domain=<domain>+infisical gateway start <gateway-name> --enroll-method=token --token=<enrollment-token> --domain=<domain>```The gateway name is provided as a positional argument.@@ -100,7 +100,7 @@ Once started, the gateway component will:```bash# Example- infisical gateway start <name> --domain=https://app.your-domain.com --enroll-method=token --token=<token>+ infisical gateway start <gateway-name> --domain=https://app.your-domain.com --enroll-method=token --token=<token>```</Accordion>@@ -172,8 +172,8 @@ sudo infisical gateway systemd install my-gateway --enroll-method=token --token=The systemd service is installed with secure defaults:-- Service file: `/etc/systemd/system/<name>.service`-- Config file: `/etc/infisical/gateways/<name>.conf`+- Service file: `/etc/systemd/system/<gateway-name>.service`+- Config file: `/etc/infisical/gateways/<gateway-name>.conf`- Runs with restricted privileges:- InaccessibleDirectories=/home- PrivateTmp=yesdiff --git a/docs/documentation/platform/gateways/gateway-deployment.mdx b/docs/documentation/platform/gateways/gateway-deployment.mdxindex f66858f53b..5529006d78 100644--- a/docs/documentation/platform/gateways/gateway-deployment.mdx+++ b/docs/documentation/platform/gateways/gateway-deployment.mdx@@ -229,7 +229,7 @@ Check gateway logs for detailed error information:- **systemd service:**```bash- sudo journalctl -u <name> -f+ sudo journalctl -u <gateway-name> -f```- **Local installation:** Logs appear in the terminal where you started the gateway</Accordion>@@ -241,12 +241,12 @@ Enrollment tokens expire after 1 hour. If the token expires before deployment, o<Accordion title="Where are gateway credentials stored?">For **token-method** gateways, the access token and domain are saved to a config file scoped by gateway name:-- **Running as root/sudo:** `/etc/infisical/gateways/<name>.conf`-- **Running as a regular user:** `~/.infisical/gateways/<name>.conf`+- **Running as root/sudo:** `/etc/infisical/gateways/<gateway-name>.conf`+- **Running as a regular user:** `~/.infisical/gateways/<gateway-name>.conf`For **AWS-method** gateways, no JWT is persisted to disk. The gateway re-authenticates by signing a fresh STS request on every start using the host's AWS credentials. Only the gateway id and domain are stored locally.-For systemd-based installations, the configuration is at `/etc/infisical/gateways/<name>.conf`. All config files are created with restricted permissions (0600).+For systemd-based installations, the configuration is at `/etc/infisical/gateways/<gateway-name>.conf`. All config files are created with restricted permissions (0600).</Accordion><Accordion title="Can I run multiple gateways on the same machine?">diff --git a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/AwsStartCommandDialog.tsx b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/AwsStartCommandDialog.tsxindex f425677f52..706fc65ae9 100644--- a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/AwsStartCommandDialog.tsx+++ b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/AwsStartCommandDialog.tsx@@ -51,7 +51,7 @@ export const AwsStartCommandDialog = ({ isOpen, onOpenChange, gatewayId, gatewayreturn `sudo infisical gateway systemd install ${gatewayName} --enroll-method=aws --gateway-id=${gatewayId}${relayPart} --domain=${siteURL}`;}, [gatewayName, gatewayId, resolvedRelayName, siteURL]);- const startServiceCommand = "sudo systemctl start infisical-gateway";+ const startServiceCommand = `sudo systemctl start ${gatewayName}`;const copy = (text: string, label: string) => {navigator.clipboard.writeText(text);diff --git a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/EnrollmentTokenDialog.tsx b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/EnrollmentTokenDialog.tsxindex acb5a1168d..f19820ea82 100644--- a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/EnrollmentTokenDialog.tsx+++ b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/EnrollmentTokenDialog.tsx@@ -56,7 +56,7 @@ export const EnrollmentTokenDialog = ({return `sudo infisical gateway systemd install ${gatewayName} --enroll-method=token --token=${enrollmentToken}${relayPart} --domain=${siteURL}`;}, [gatewayName, enrollmentToken, resolvedRelayName, siteURL]);- const startServiceCommand = "sudo systemctl start infisical-gateway";+ const startServiceCommand = `sudo systemctl start ${gatewayName}`;const copy = (text: string, label: string) => {navigator.clipboard.writeText(text);