How warp-tech/warpgate works
Warpgate is a transparent, multi-protocol bastion: users connect through native clients or a browser, authenticate, select or resolve an authorized target, and have traffic proxied to it, optionally with session recording. The repository separates protocol handlers, shared authorization and session services, persistence, and the admin and gateway interfaces. The README documents the principal flow and major capabilities; several protocol and service implementations were not sampled, so their internal call relationships are not inferred here.
Main entry points: main.rs Warpgate service · auth.rs Authentication · session.rs HTTPS gateway · russh_handler.rs SSH gateway
Components 23
Service entry
- Warpgate service
warpgate/src/main.rs
Protocol gateways
- SSH gateway
warpgate-protocol-ssh/src/server/russh_handler.rs - HTTPS gateway
warpgate-protocol-http/src/session.rs - Kubernetes gateway
warpgate-protocol-kubernetes/src/server/handlers.rs - MySQL gateway
warpgate-protocol-mysql/src/client.rs - PostgreSQL gateway
warpgate-protocol-postgres/src/client.rs - RDP gateway
warpgate-protocol-rdp/src/server/mod.rs - VNC gateway
warpgate-protocol-vnc/src/server/mod.rs - Browser desktop
warpgate-web-desktop/src/manager.rs - Browser SSH
warpgate-web-ssh/src/manager.rs
Access and identity
- Authentication
warpgate-core/src/auth.rs - Desktop authentication
warpgate-desktop-auth/src/lib.rs - SSO integration
warpgate-sso/src/sso.rs - Login protection
warpgate-core/src/login_protection/service.rs - Target configuration
warpgate-common/src/config/target.rs
Sessions and audit
- Session recordings
warpgate-core/src/recordings/storage.rs - Kubernetes audit
warpgate-protocol-kubernetes/src/audit.rs - HTTP session storage
warpgate-protocol-http/src/session_storage.rs - SQLite database
warpgate-core/src/db/mod.rs
Web interfaces
- Admin API
warpgate-admin/src/api/mod.rs - Admin UI
warpgate-web/src/admin/App.svelte - Gateway UI
warpgate-web/src/gateway/App.svelte
Other components
- Operator / client
Connections 30
- Operator / client → Warpgate service: connects to
README.md - Warpgate service → SSH gateway: accepts protocol
README.md - Warpgate service → HTTPS gateway: accepts protocol
README.md - Warpgate service → Kubernetes gateway: accepts protocol
README.md - Warpgate service → MySQL gateway: accepts protocol
README.md - Warpgate service → PostgreSQL gateway: accepts protocol
README.md - Warpgate service → RDP gateway: accepts protocol
README.md - Warpgate service → VNC gateway: accepts protocol
README.md - SSH gateway → Authentication: authenticates
- HTTPS gateway → Authentication: authenticates
- Kubernetes gateway → Authentication: authorizes
- MySQL gateway → Authentication: authenticates
- PostgreSQL gateway → Authentication: authenticates
- RDP gateway → Desktop authentication: authenticates
warpgate-desktop-auth/src/lib.rs - VNC gateway → Desktop authentication: authenticates
warpgate-desktop-auth/src/lib.rs - Authentication → Login protection: checks attempts
- Authentication → Target configuration: resolves access
README.md - Authentication → SSO integration: supports SSO
README.md - HTTPS gateway → Gateway UI: serves access UI
README.md - Gateway UI → Browser desktop: opens sessions
- Gateway UI → Browser SSH: opens sessions
- Admin UI → Admin API: manages access
README.md - Admin API → Target configuration: manages targets
- HTTPS gateway → HTTP session storage: stores sessions
warpgate-protocol-http/src/session_storage.rs - HTTP session storage → SQLite database: reads and writes
warpgate-protocol-http/src/session_storage.rs - SSH gateway → Session recordings: records session
README.md - HTTPS gateway → Session recordings: records session
README.md - Kubernetes gateway → Kubernetes audit: audits requests
warpgate-protocol-kubernetes/src/server/handlers.rs - Session recordings → Admin UI: replays recordings
README.md - Admin API → SQLite database: persists history
README.md