docs/documentation/platform/pam/architecture.mdx
PAM uses a proxy-based architecture. Nothing connects directly to your databases or servers: everything goes through the Gateway. This keeps your infrastructure isolated while providing secure, auditable access.
Infisical Platform — the control plane. Stores account credentials, manages permissions, and hosts the web interface.
Gateway — a lightweight service you deploy in your private network. It proxies connections to your databases and servers, injects credentials, and records sessions.
Client — a user's browser (Web Access) or the CLI. Connects to the Gateway through an encrypted tunnel. An AI agent connects through the CLI, which holds the tunnel on its behalf.
Actor — the user or machine identity the session belongs to. Permissions, policies, and the audit trail all follow the actor.
When an actor connects to an account:
The actor never sees the credentials. The database/server never sees the actor directly.
The Gateway uses outbound connections only:
All connections are encrypted:
The Relay server (which routes traffic between clients and Gateways) cannot decrypt or inspect the traffic passing through it.
Recording happens at the Gateway:
This ensures no data is lost, even during network issues.
| Setup | Use case |
|---|---|
| Single Gateway | Small environments, single network |
| Gateway per network | Multiple VPCs or on-prem segments |
| Gateway Pool | High availability, load balancing |
For deployment instructions, see Deploy a Gateway.