How meghamshb/aegismesh works
AegisMesh (also called Clearance) is an outbound-egress approval gateway with a React operator console and a multi-gateway control plane. An agent’s request reaches the gateway proxy, which resolves identity and evaluates policy; allowed traffic is forwarded, while new destinations are blocked pending an operator’s approve-once, allow-by-rule, or deny decision. The console also manages requests, rules, audit, users, agents, and gateways. The graph follows documented and excerpted calls; unsampled fleet and storage links are omitted or marked unverified.
Main entry points: App.jsx Console app · handler.go Egress proxy · server.go HTTP API · egress.go Egress service
Components 23
Operator console
- Console app
services/approval-ui/src/App.jsx - API client
services/approval-ui/src/api/client.js - Request inbox
services/approval-ui/src/components/InboxTab.jsx - Agent management
services/approval-ui/src/components/AgentsTab.jsx - Audit view
services/approval-ui/src/components/AuditTab.jsx - Gateway management
services/approval-ui/src/components/GatewaysTab.jsx - Rule management
services/approval-ui/src/components/RulesTab.jsx - User management
services/approval-ui/src/components/UsersTab.jsx
Control plane
- HTTP API
services/policy-gateway/internal/api/server.go - Directory handlers
services/policy-gateway/internal/api/handlers_directory.go - Authentication
services/policy-gateway/internal/auth/auth.go - Postgres store
services/policy-gateway/internal/store/postgres.go
Egress gateway
- Egress service
services/policy-gateway/internal/service/egress.go - Egress proxy
services/policy-gateway/internal/proxy/handler.go - Agent identity
services/policy-gateway/internal/identity/service.go - Gateway application
services/policy-gateway/internal/app/app.go
Policy and fleet
- Policy engine
services/policy-gateway/internal/policy/engine.go - Policy source
services/policy-gateway/internal/policy/source.go - Remote identity client
services/policy-gateway/internal/remoteidentity/client.go - Fleet reporting
services/policy-gateway/internal/fleet/reporter.go
Other components
- Operator
- Agent
- Destination host
Connections 27
- Operator → Console app: uses
README.md - Console app → API client: calls
services/approval-ui/src/App.jsx - Console app → Request inbox: renders
services/approval-ui/src/App.jsx - Console app → Agent management: renders
services/approval-ui/src/App.jsx - Console app → Audit view: renders
services/approval-ui/src/App.jsx - Console app → Gateway management: renders
services/approval-ui/src/App.jsx - Console app → Rule management: renders
services/approval-ui/src/App.jsx - Console app → User management: renders
services/approval-ui/src/App.jsx - Request inbox → API client: requests
services/approval-ui/src/components/InboxTab.jsx - Agent management → API client: requests
services/approval-ui/src/components/AgentsTab.jsx - API client → HTTP API: calls API
- Agent → Egress proxy: sends traffic
README.md - Gateway application → Egress proxy: dispatches
services/policy-gateway/internal/app/app.go - Gateway application → HTTP API: serves routes
services/policy-gateway/internal/app/app.go - Egress proxy → Egress service: evaluates egress
services/policy-gateway/internal/proxy/handler.go - Egress proxy → Agent identity: resolves identity
services/policy-gateway/internal/proxy/handler.go - Egress proxy → Destination host: forwards allowed
services/policy-gateway/internal/proxy/handler.go - Egress service → Policy engine: evaluates policy
- Policy engine → Policy source: matches rules
services/policy-gateway/internal/policy/engine.go - Directory handlers → Egress service: manages directory
services/policy-gateway/internal/api/handlers_directory.go - Directory handlers → Agent identity: registers agents
services/policy-gateway/internal/api/handlers_directory.go - HTTP API → Authentication: authorizes
services/policy-gateway/internal/api/server.go - Egress service → Postgres store: persists state
- Policy engine → Postgres store: reads request state
services/policy-gateway/internal/policy/engine.go - Egress proxy → Remote identity client: authenticates remotely
services/policy-gateway/internal/proxy/handler.go - Remote identity client → HTTP API: resolves token hash
services/policy-gateway/internal/remoteidentity/client.go - Fleet reporting → HTTP API: reports fleet