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
docs: updated relay systemd installation
Sheen Capadngandcafbf055725
diff --git a/docs/cli/commands/relay.mdx b/docs/cli/commands/relay.mdxindex 96cb964047..3de465a563 100644--- a/docs/cli/commands/relay.mdx+++ b/docs/cli/commands/relay.mdx@@ -37,12 +37,11 @@ Relays support two enrollment methods. The enrollment method is set when creatin</Tab><Tab title="Linux (systemd)">```bash- sudo infisical relay systemd install \- --name=<name> \+ sudo infisical relay systemd install <name> \--enroll-method=token \--token=<enrollment-token> \--domain=<your-infisical-domain>- sudo systemctl start infisical-relay+ sudo systemctl start <name>```</Tab></Tabs>@@ -67,12 +66,11 @@ Relays support two enrollment methods. The enrollment method is set when creatin</Tab><Tab title="Linux (systemd)">```bash- sudo infisical relay systemd install \- --name=<name> \+ sudo infisical relay systemd install <name> \--enroll-method=aws \--relay-id=<relay-id> \--domain=<your-infisical-domain>- sudo systemctl start infisical-relay+ sudo systemctl start <name>```</Tab></Tabs>@@ -119,28 +117,39 @@ Relays support two enrollment methods. The enrollment method is set when creatin<AccordionGroup><Accordion title="install">- Install and enable systemd service for the relay. See the authentication section above for install commands.+ Install and enable a systemd service for the relay. The relay name is provided as a positional argument, and the installed service is named after it, so you can run multiple relays on the same machine. See the authentication section above for the full install commands.- After installation, start the service:+ ```bash+ sudo infisical relay systemd install <name> --enroll-method=token --token=<enrollment-token> --domain=<your-infisical-domain>+ ```++ After installation, start and enable the service (replace `<name>` with your relay name):```bash- sudo systemctl start infisical-relay- sudo systemctl enable infisical-relay+ sudo systemctl start <name>+ sudo systemctl enable <name>```To check status and logs:```bash- sudo systemctl status infisical-relay- sudo journalctl -u infisical-relay -f+ sudo systemctl status <name>+ sudo journalctl -u <name> -f```++ ### Service Details++ - Service file: `/etc/systemd/system/<name>.service`+ - Config directory: `/etc/infisical/relays/`+ - Runs with restricted privileges and automatically restarts on failure+ - Enabled to start on boot</Accordion><Accordion title="uninstall">- Uninstall and remove systemd service for the relay.+ Uninstall and remove a relay's systemd service. The relay name is provided as a positional argument.```bash- sudo infisical relay systemd uninstall+ sudo infisical relay systemd uninstall <name>```</Accordion></AccordionGroup>diff --git a/docs/documentation/platform/gateways/relay-deployment/overview.mdx b/docs/documentation/platform/gateways/relay-deployment/overview.mdxindex 9c6ebe9300..6493fa95cb 100644--- a/docs/documentation/platform/gateways/relay-deployment/overview.mdx+++ b/docs/documentation/platform/gateways/relay-deployment/overview.mdx@@ -71,12 +71,11 @@ To successfully deploy an Infisical Relay for use, follow these steps in order.<Tabs><Tab title="Linux (Production)">```bash- sudo infisical relay systemd install \- --name=<relay-name> \+ sudo infisical relay systemd install <relay-name> \--enroll-method=token \--token=<enrollment-token> \--domain=<your-infisical-domain>- sudo systemctl start infisical-relay+ sudo systemctl start <relay-name>```</Tab><Tab title="Foreground">@@ -96,12 +95,11 @@ To successfully deploy an Infisical Relay for use, follow these steps in order.<Tabs><Tab title="Linux (Production)">```bash- sudo infisical relay systemd install \- --name=<relay-name> \+ sudo infisical relay systemd install <relay-name> \--enroll-method=aws \--relay-id=<relay-id> \--domain=<your-infisical-domain>- sudo systemctl start infisical-relay+ sudo systemctl start <relay-name>```</Tab><Tab title="Foreground">diff --git a/docs/documentation/platform/gateways/relay-deployment/terraform.mdx b/docs/documentation/platform/gateways/relay-deployment/terraform.mdxindex 164a41000a..df154eb0c7 100644--- a/docs/documentation/platform/gateways/relay-deployment/terraform.mdx+++ b/docs/documentation/platform/gateways/relay-deployment/terraform.mdx@@ -109,15 +109,15 @@ module "infisical_relay_instance" {# Create the relay in the Infisical UI first, then use the enrollment token here.## Note: For production environments, you might consider fetching the token from AWS Parameter Store or AWS Secrets Manager.- sudo infisical relay systemd install \- --name "my-relay-example" \+ sudo infisical relay systemd install my-relay-example \--enroll-method=token \--token "your-enrollment-token" \--domain "https://app.infisical.com"- # Start and enable the service to run on boot- sudo systemctl start infisical-relay- sudo systemctl enable infisical-relay+ # Start and enable the service to run on boot.+ # The systemd service is named after the relay.+ sudo systemctl start my-relay-example+ sudo systemctl enable my-relay-exampleEOT}diff --git a/frontend/src/pages/organization/NetworkingPage/RelayDetailsByIDPage/components/RelayDeploySection/RelayDeployCommandDialog.tsx b/frontend/src/pages/organization/NetworkingPage/RelayDetailsByIDPage/components/RelayDeploySection/RelayDeployCommandDialog.tsxindex 4a36a00743..e67d131c3f 100644--- a/frontend/src/pages/organization/NetworkingPage/RelayDetailsByIDPage/components/RelayDeploySection/RelayDeployCommandDialog.tsx+++ b/frontend/src/pages/organization/NetworkingPage/RelayDetailsByIDPage/components/RelayDeploySection/RelayDeployCommandDialog.tsx@@ -48,12 +48,12 @@ export const RelayDeployCommandDialog = ({const systemdInstallCommand = useMemo(() => {if (authMethod === "aws") {- return `sudo infisical relay systemd install --name=${relayName} --enroll-method=aws --relay-id=${relayId} --domain=${siteURL}`;+ return `sudo infisical relay systemd install ${relayName} --enroll-method=aws --relay-id=${relayId} --domain=${siteURL}`;}- return `sudo infisical relay systemd install --name=${relayName} --enroll-method=token --token=${enrollmentToken} --domain=${siteURL}`;+ return `sudo infisical relay systemd install ${relayName} --enroll-method=token --token=${enrollmentToken} --domain=${siteURL}`;}, [relayName, relayId, enrollmentToken, authMethod, siteURL]);- const startServiceCommand = "sudo systemctl start infisical-relay";+ const startServiceCommand = `sudo systemctl start ${relayName}`;const copy = (text: string, label: string) => {navigator.clipboard.writeText(text);