How gravitational/teleport works
Teleport is an identity-aware access platform: users and workloads authenticate, receive short-lived access, reach infrastructure through protocol-aware services and tunnels, and have activity audited. The graph combines documented product capabilities with sampled control-plane, protocol, and client modules; it does not imply that every README capability is wired through the sampled files. Some core modules are represented by their exact source paths but were not excerpted, so their internal relationships are omitted.
Main entry points: controller.go Infrastructure inventory · server.go Identity joining · rc_manager.go Reverse tunnels · externalauditstorage.go Audit storage API
Components 21
Identity and control plane
- Auth storage
lib/auth/storage/storage.go - Identity joining
lib/join/server.go - Infrastructure inventory
lib/inventory/controller.go - Health checks
lib/healthcheck/manager.go
Resource access
- Reverse tunnels
lib/reversetunnel/rc_manager.go - SSH sessions
lib/sshutils/server.go - Kubernetes access
lib/kube/proxy/server.go - Postgres access
lib/srv/db/postgres/engine.go - Redis access
lib/srv/db/redis/engine.go - DynamoDB access
lib/srv/db/dynamodb/engine.go - Snowflake access
lib/srv/db/snowflake/engine.go
Audit and state
- Audit storage config
api/types/externalauditstorage/externalauditstorage.go - Audit storage service
lib/services/local/externalauditstorage.go - Audit storage API
api/client/externalauditstorage/externalauditstorage.go
Clients and interfaces
- Web console
web/packages/teleport/src/Console/consoleContext.tsx - Database discovery UI
web/packages/teleport/src/Discover/Database/CreateDatabase/useCreateDatabase.ts - Cluster profiles
lib/teleterm/clusters/storage.go
Operations and integrations
- Update agent
tool/teleport-update/main.go - Retrieval model operator
integrations/operator/controllers/resources/retrieval_model_controller.go
Other components
- Users and workloads
- Protected infrastructure
Connections 20
- Users and workloads → Web console: manage access
- Web console → Database discovery UI: configure resources
- Users and workloads → Cluster profiles: use profiles
- Users and workloads → Identity joining: establish identity
- Identity joining → Auth storage: uses keystore
lib/join/server.go - Infrastructure inventory → Health checks: manages checks
- Infrastructure inventory → Auth storage: uses auth state
- Users and workloads → Reverse tunnels: reach resources
- Reverse tunnels → Protected infrastructure: tunnels access
- Protected infrastructure → SSH sessions: accepts sessions
- Protected infrastructure → Kubernetes access: accepts sessions
- Protected infrastructure → Postgres access: serves database
lib/srv/db/postgres/engine.go - Protected infrastructure → Redis access: serves database
- Protected infrastructure → DynamoDB access: serves database
- Protected infrastructure → Snowflake access: serves database
- Audit storage API → Audit storage config: converts resources
api/client/externalauditstorage/externalauditstorage.go - Audit storage service → Audit storage config: reads and writes
lib/services/local/externalauditstorage.go - Users and workloads → Audit storage API: configure audit
- Retrieval model operator → Users and workloads: configures retrieval
- Update agent → Users and workloads: updates deployment