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: add minimum requirements for relay and gateway
Sheen Capadngan4769b1d38f1f
diff --git a/docs/documentation/platform/gateways/gateway-deployment.mdx b/docs/documentation/platform/gateways/gateway-deployment.mdxindex 96a3dfd070..2eaec41bd4 100644--- a/docs/documentation/platform/gateways/gateway-deployment.mdx+++ b/docs/documentation/platform/gateways/gateway-deployment.mdx@@ -32,6 +32,15 @@ You can also run both at once. See [Running both modes](#running-both-modes).For the ports, certificates, and traffic flow behind each mode, see [Network architecture](/documentation/platform/gateways/network-architecture).+## Host requirements++| Workload | Minimum |+| --- | --- |+| General use | 2 vCPU, 1 GB memory |+| PAM | 4 vCPU, 8 GB memory |++General use is the gateway acting as a network path to a private resource, such as a database reached through an app connection or a dynamic secret, a secret rotation target, or an ADCS or HSM server. PAM asks more of the gateway, because the session protocols and session recording both run there, and it scales on the number of sessions open at once. With recording enabled, the gateway also needs disk for recordings it hasn't uploaded yet.+## Deployment steps<Steps>diff --git a/docs/documentation/platform/gateways/relay-deployment/overview.mdx b/docs/documentation/platform/gateways/relay-deployment/overview.mdxindex 52d6111c44..6a2a7c7e97 100644--- a/docs/documentation/platform/gateways/relay-deployment/overview.mdx+++ b/docs/documentation/platform/gateways/relay-deployment/overview.mdx@@ -32,13 +32,17 @@ Infisical provides managed relay infrastructure in US/EU regions for Infisical CIf you're using Infisical Cloud and don't have specific requirements, you can use the managed relays provided by Infisical and skip the rest of this guide.+## Host requirements++A relay forwards traffic between Infisical and your gateways, so it's sized by the traffic it carries rather than by what the gateways do with it. 2 vCPU and 1 GB of memory is the minimum for production.+## Deployment stepsTo successfully deploy an Infisical Relay for use, follow these steps in order.<Steps><Step title="Provision a Server">- Provision a server or virtual machine where you plan to deploy the relay. This server must have a static IP address or DNS name to be identifiable by the Infisical platform.+ Provision a server or virtual machine where you plan to deploy the relay, sized as described in [Host requirements](#host-requirements). This server must have a static IP address or DNS name to be identifiable by the Infisical platform.</Step><Step title="Create the Relay in the UI">diff --git a/docs/documentation/platform/gateways/relay-deployment/terraform.mdx b/docs/documentation/platform/gateways/relay-deployment/terraform.mdxindex ea2ee810ff..87b0993ecb 100644--- a/docs/documentation/platform/gateways/relay-deployment/terraform.mdx+++ b/docs/documentation/platform/gateways/relay-deployment/terraform.mdx@@ -92,7 +92,7 @@ module "infisical_relay_instance" {name = "infisical-relay-example"ami = "ami-065778886ef8ec7c8" # Change to your desired AMI ID- instance_type = "t3.micro"+ instance_type = "t3.micro" # 2 vCPU / 1 GB, the minimum for a production relaysubnet_id = "subnet-0fd2337a1c604a494" # Change to your Subnet IDvpc_security_group_ids = [aws_security_group.infisical_relay_sg.id]diff --git a/docs/self-hosting/helm-charts/gateway.mdx b/docs/self-hosting/helm-charts/gateway.mdxindex 6a0ac0a05e..b7260fd386 100644--- a/docs/self-hosting/helm-charts/gateway.mdx+++ b/docs/self-hosting/helm-charts/gateway.mdx@@ -126,6 +126,22 @@ helm uninstall infisical-gateway --namespace infisical-gateway| `service.type` | `ClusterIP` | Type of the Service created in direct listen mode. || `service.port` | `""` | Port the Service exposes. Empty means the port from `gateway.listenAddress`. Set it only to put a different port in front of the gateway. |+## Resource limits++PAM is heavier per session, so raise the chart's resource limits:++```yaml+resources:+ requests:+ cpu: 1+ memory: 2Gi+ limits:+ cpu: 4+ memory: 8Gi+```++Recordings share the volume with the gateway's credentials, so raise `persistence.size` above its 5Gi default if your sessions are long or numerous.+## Direct listen modeBy default the gateway connects out to a relay. To have Infisical connect to the gateway instead, set `gateway.listenAddress` to the address Infisical dials.