docs/documentation/platform/gateways/security.mdx
The Infisical Gateway enables secure access to private resources using SSH reverse tunnels, certificate-based authentication, and a comprehensive PKI (Public Key Infrastructure) system. The architecture provides end-to-end encryption and complete tenant isolation through multiple certificate authorities.
The gateway system uses multiple certificate authorities depending on deployment configuration:
For Organizations Using Infisical-Managed Relays:
For Organizations Using Customer-Deployed Relays:
Instance Level (Shared Relays):
├── Instance Relay SSH CA (Gateway ↔ Relay)
├── Instance Relay PKI CA (Platform ↔ Relay)
Organization Level:
├── Organization Relay SSH CA (Gateway ↔ Org Relay)
├── Organization Relay PKI CA (Platform ↔ Org Relay)
└── Organization Gateway CA (Platform ↔ Gateway)
When a gateway is first deployed:
Gateway ↔ Relay Server communication uses SSH certificate authentication:
Gateway Authentication:
Relay Server Authentication:
The platform establishes secure direct connections with gateways through a TLS-pinned tunnel mechanism:
TLS-Pinned Tunnel Establishment:
Connection Flow:
Platform ←→ [TCP with TLS] ←→ Relay ←→ [SSH Reverse Tunnel] ←→ Gateway
Security Benefits:
The architecture provides tenant isolation through multiple certificate authority layers:
Infisical-Managed Relay Deployments:
Customer-Deployed Relay Deployments:
Certificate Validation:
Network Isolation: