docs/documentation/platform/pam/architecture.mdx
PAM uses a proxy-based architecture. Users never connect 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 — the user's browser (Web Access) or CLI. Connects to the Gateway through an encrypted tunnel.
When a user connects to an account:
The user never sees the credentials. The database/server never sees the user 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.