How pamelia/gorp works
Main Components
a) Client Layer:
• External clients making HTTP/HTTPS requests
• Clients with TLS certificates (for client verification)
b) Proxy Layer (Core):
• HTTP/2 Listener component
• TLS 1.3 Handler
• Client Certificate Verification module
• Load Balancer (Round-robin implementation)
c) Backend Layer:
• Multiple HTTP/HTTPS backend servers
• Backend TLS verification component
• CA certificate verification system
Component Organization
[Clients] -> [GORP Proxy] -> [Backend Servers]
Detailed Component Breakdown
For the proxy core (based on the pkg directory structure):
• Config Component (pkg/config)
• PKI Management (pkg/pki)
• Proxy Handler (pkg/proxy)
• Logger System (pkg/logger)
Key Relationships to Highlight
• TLS handshake flow
• Load balancing distribution
• Certificate verification points
• Configuration loading paths
Implementation Details
• Command handling (cmd/ directory)
• Configuration management (example_config.yaml)
• Core proxy logic (pkg/proxy)
• Security components (pkg/pki)
Specific Elements
[Client Layer]
↓ TLS 1.3
[TLS Termination] → [Client Cert Verification]
↓
[Proxy Core]
• Config Manager
• Logger
• Load Balancer
↓
[Backend TLS Verification] → [CA Cert Check]
↓
[Backend Servers Pool]