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(gateways): cut the ", so X" habit back
bernie-g990f16902490
diff --git a/docs/cli/commands/gateway.mdx b/docs/cli/commands/gateway.mdxindex 20aafe06d1..d1171eea89 100644--- a/docs/cli/commands/gateway.mdx+++ b/docs/cli/commands/gateway.mdx@@ -172,13 +172,13 @@ In direct listen mode it also:Can also be set with the `INFISICAL_GATEWAY_LISTEN_ADDRESS` environment variable.<Note>- Direct listen is available on self-hosted Infisical. Infisical Cloud runs outside your network and has no route into it, so there's no address it could dial. On Cloud, use `--relay` or omit both flags.+ Direct listen is available on self-hosted Infisical. Infisical Cloud runs outside your network and has no route into it, leaving no address it could dial. On Cloud, use `--relay` or omit both flags.</Note></Accordion><Accordion title="--bind">- The local `host:port` the gateway binds for direct connections. Defaults to every interface on the port from `--listen-address`, so you only need this flag when the address Infisical dials differs from the socket the gateway should open.+ The local `host:port` the gateway binds for direct connections. Defaults to every interface on the port from `--listen-address`. Reach for this flag only when the address Infisical dials differs from the socket the gateway should open.Use it to bind a single interface, or to listen on a different local port than the one advertised, such as behind a load balancer that terminates on 8443 and forwards to 9000.diff --git a/docs/cli/commands/pam.mdx b/docs/cli/commands/pam.mdxindex 259f6b0d0c..744cb37d4d 100644--- a/docs/cli/commands/pam.mdx+++ b/docs/cli/commands/pam.mdx@@ -11,7 +11,7 @@ infisical pam access <path> [flags] [-- <command>]Open one PAM-managed account for your own use, brokered through Infisical's [Gateway](/documentation/platform/gateways/overview) so you never handle its credentials. Requires `infisical login`.-The CLI connects to the gateway from your own machine, so you need a network path to it. A gateway in [relay mode](/documentation/platform/gateways/network-architecture) works from anywhere, because the relay is reachable from outside your network. A gateway in direct listen mode only works from a machine that can reach its registered address, so from outside that network you'll need a VPN into it, or a relay on the gateway.+The CLI connects to the gateway from your own machine, which means you need a network path to it. A gateway in [relay mode](/documentation/platform/gateways/network-architecture) works from anywhere, because the relay is reachable from outside your network. A gateway in direct listen mode only works from a machine that can reach its registered address. From outside that network you'll need a VPN into it, or a relay on the gateway.This single command handles every account type: the CLI adapts its behavior to whichever type the account's template defines (see [Account Types and Behavior](#account-types-and-behavior) below).diff --git a/docs/documentation/platform/gateways/gateway-deployment.mdx b/docs/documentation/platform/gateways/gateway-deployment.mdxindex 2e404f5fc7..f4ccc8c337 100644--- a/docs/documentation/platform/gateways/gateway-deployment.mdx+++ b/docs/documentation/platform/gateways/gateway-deployment.mdx@@ -27,7 +27,7 @@ Before you deploy, decide which side opens the connection between Infisical and**Use relay mode** when the Gateway sits behind NAT or a firewall you can't open, when you're on Infisical Cloud, or when PAM CLI users connect from outside the Gateway's network.-Direct listen isn't a paid feature you can turn on for Cloud. Cloud runs outside your network and has no route into it, so there's no address it could dial. Relay mode exists so the Gateway can open that connection from the inside.+Direct listen isn't a paid feature you can turn on for Cloud. Cloud runs outside your network and has no route into it, leaving no address it could dial. Relay mode exists for exactly that case: the Gateway opens the connection from the inside.You can also run both at once, which is how you move an existing Gateway from one mode to the other without an outage. Pass `--relay` and `--listen-address` together, and Infisical uses the direct address first and falls back to the relay when it stops answering. See [Running both modes](/documentation/platform/gateways/network-architecture#running-both-modes).@@ -76,7 +76,7 @@ For the ports, certificates, and traffic flow behind each mode, see [Network arcIf you're in a corporate environment with strict egress filtering, ensure outbound TCP 2222 to relay servers and outbound HTTPS 443 to Infisical API endpoints are allowed.- **Direct listen mode.** The Gateway accepts inbound connections, so one port has to be open to Infisical.+ **Direct listen mode.** The Gateway accepts inbound connections. One port has to be open to Infisical.| Protocol | Direction | Source or destination | Port | Purpose || -------- | --------- | --------------------- | ---- | ------- |@@ -363,7 +363,7 @@ Switching away from a mode drops it. To keep both, pass `--relay` and `--listen-</Accordion><Accordion title="Why does my direct listen gateway fail to register?">-The listen address has to be `host:port`, with a port in the range 1 to 65535. An address with no port is rejected, and so is one that includes a scheme or a path, so use `gateway.internal:8443` rather than `https://gateway.internal` or `gateway.internal`.+The listen address has to be `host:port`, with a port in the range 1 to 65535. Use `gateway.internal:8443`, not `https://gateway.internal` or `gateway.internal`: an address is rejected if it has no port, or if it carries a scheme or a path.Direct listen is also unavailable on Infisical Cloud, which runs outside your network and has no route into it. On Cloud, use relay mode.diff --git a/docs/documentation/platform/gateways/network-architecture.mdx b/docs/documentation/platform/gateways/network-architecture.mdxindex 83986a00f8..328e39620e 100644--- a/docs/documentation/platform/gateways/network-architecture.mdx+++ b/docs/documentation/platform/gateways/network-architecture.mdx@@ -8,15 +8,14 @@ The Gateway is deployed inside your private network, alongside the resources InfThere are two ways the Gateway and Infisical reach each other, and they differ in one thing: which side opens the connection.-- **Relay mode.** The Gateway dials out to a [relay server](/documentation/platform/gateways/relay-deployment/overview) and keeps that tunnel open. Infisical connects to the relay, and its requests travel back down the tunnel the Gateway already established. The Gateway accepts no inbound connections, so your firewall needs no inbound rules.+- **Relay mode.** The Gateway dials out to a [relay server](/documentation/platform/gateways/relay-deployment/overview) and keeps that tunnel open. Infisical connects to the relay, and its requests travel back down the tunnel the Gateway already established. The Gateway accepts no inbound connections at all.- **Direct listen mode.** The Gateway listens on an address you register, and Infisical connects to it. There's no relay to deploy, but the address has to be reachable from wherever Infisical runs.Both modes carry the same mutually authenticated TLS between Infisical and the Gateway, with certificates issued by your organization's own certificate authorities. In relay mode the relay routes bytes without holding the keys to read them.<Info>- Direct listen is available on self-hosted Infisical. It can't work on Infisical Cloud, because- Cloud runs outside your network and has no route into it, so there's no address it could dial.- Cloud gateways use relay mode, where the Gateway opens the connection instead.+ Direct listen is available on self-hosted Infisical. Cloud runs outside your network and has no+ route into it, leaving no address it could dial, so Cloud gateways use relay mode instead.</Info>## Relay mode@@ -86,7 +85,7 @@ By default the Gateway binds the port from `--listen-address` on every interface## Running both modes-A Gateway can run both modes at once. Pass `--relay` and `--listen-address` together, and Infisical uses the direct address first, and falls back to the relay when that address stops answering. Health checks probe each mode separately, so the Gateway stays healthy while either one works.+A Gateway can run both modes at once. Pass `--relay` and `--listen-address` together, and Infisical uses the direct address first, falling back to the relay when that address stops answering. Health checks probe each mode separately. The Gateway stays healthy while either one works.Running both is mainly how you switch an existing Gateway between modes without an outage. A Gateway declares its transports every time it registers, so the move is a flag change and a restart:@@ -96,9 +95,9 @@ Running both is mainly how you switch an existing Gateway between modes without| `--relay=my-relay --listen-address=gateway.internal:8443` | Both || `--listen-address=gateway.internal:8443` | Direct only |-Stop at the middle step and check the Gateway's health. If the address is wrong or Infisical can't route to it, operations keep completing over the relay while the Gateway page reports the direct path as unreachable, so a bad address costs you nothing. Drop `--relay` once direct is healthy, or drop `--listen-address` to go back.+Stop at the middle step and check the Gateway's health. A wrong address costs you nothing there: operations keep completing over the relay, and the Gateway page reports the direct path as unreachable. Drop `--relay` once direct is healthy, or drop `--listen-address` to go back.-Running both permanently only helps clients that can reach the direct address. PAM CLI sessions dial the Gateway from the user's own machine, so a user outside the network waits for the direct attempt to time out before the session falls back to the relay. If most of your CLI users are outside the network, relay mode alone serves them better.+Running both permanently only helps clients that can reach the direct address. PAM CLI sessions dial the Gateway from the user's own machine. A user outside the network waits for that attempt to time out before the session falls back to the relay. If most of your CLI users are outside the network, relay mode alone serves them better.## Self-hosted relay (optional)diff --git a/docs/self-hosting/helm-charts/gateway.mdx b/docs/self-hosting/helm-charts/gateway.mdxindex 362cc6c93a..9727d13848 100644--- a/docs/self-hosting/helm-charts/gateway.mdx+++ b/docs/self-hosting/helm-charts/gateway.mdx@@ -131,7 +131,7 @@ helm uninstall infisical-gateway --namespace infisical-gatewayBy default the gateway connects out to a relay. To have Infisical connect to the gateway instead, set `gateway.listenAddress` to the address Infisical dials.<Warning>- `gateway.listenAddress` needs an `image.tag` whose CLI supports `--listen-address`. An older image rejects the flag and the pod crash-loops with `unknown flag: --listen-address`, so check the tag before setting it.+ `gateway.listenAddress` needs an `image.tag` whose CLI supports `--listen-address`. Check the tag before setting it: an older image rejects the flag and the pod crash-loops with `unknown flag: --listen-address`.</Warning>@@ -146,13 +146,13 @@ helm install infisical-gateway infisical-helm-charts/infisical-gateway \--set gateway.domain=<your-infisical-domain>```-The chart takes the container port from `gateway.listenAddress` and points the Service at it, and the Service exposes that same port, so none of the three can drift apart. A `host:port` value is required, and the chart fails the render if the port is missing. Set `service.port` only if you want the Service to answer on a different port than the gateway binds, in which case the address you register has to name the Service's port.+The chart takes the container port from `gateway.listenAddress`, points the Service at it, and exposes that same port, which keeps all three in step. A `host:port` value is required, and the chart fails the render if the port is missing. Set `service.port` only if you want the Service to answer on a different port than the gateway binds, in which case the address you register has to name the Service's port.-The Service is created only in direct listen mode. In relay mode the gateway accepts no connections, so the chart creates none.+The Service is created only in direct listen mode. A relay-mode gateway accepts no connections and needs none.The address has to be one Infisical can resolve and reach. An in-cluster Service DNS name works when you self-host Infisical in the same cluster. From outside the cluster, expose the gateway through an Ingress or a `LoadBalancer` Service and register that address instead.-Direct listen is available on self-hosted Infisical. Infisical Cloud runs outside your cluster and has no route into it, so there's no address it could dial. On Cloud, leave `gateway.listenAddress` empty and use a relay.+Direct listen is available on self-hosted Infisical. Infisical Cloud runs outside your cluster and has no route into it, leaving no address it could dial. On Cloud, leave `gateway.listenAddress` empty and use a relay.## Default Helm values