Layer Architecture
Hexr’s five layers form a dependency chain where each layer builds on the one below:Layer 1 — Identity Foundation
SPIRE Server · SPIRE Agent · Auto-Registrar · OIDC DiscoveryThe trust root. Every process gets a cryptographic identity (SPIFFE X.509 + JWT).
Layer 2 — Observability
OTel Collector · Prometheus · Jaeger · Grafana (42 panels)Full telemetry pipeline — traces, metrics, and dashboards for every agent operation.
Layer 3 — Platform Services
Vault · Gateway · Credential Injector · A2A · Sandbox · LLM Guard · Envoy · ValkeyThe runtime services agents interact with transparently through the SDK.
Layer 4 — Developer Experience
Python SDK · CLI · Private PyPI · Agent DecoratorsWhat you interact with as a developer —
@hexr_agent, hexr build, hexr deploy.Layer 5 — Management
Dashboard · Cloud API · Identity Graph · Compliance EngineWeb UI and APIs for platform operators and administrators.
Each layer is deployed as independent Kubernetes workloads within the
hexr-system namespace.
Tenant agent pods run in isolated tenant-{name} namespaces.Layer 1: Identity Foundation
The trust root for the entire platform. Without Layer 1, nothing else works.SPIRE Server
The certificate authority. Manages a registration entry database (PostgreSQL-backed) and issues short-lived X.509-SVIDs and JWT-SVIDs to attested workloads.Auto-Registrar
Watches Kubernetes for pods withhexr.io/* labels and automatically creates SPIRE registration entries. Supports per-process registration — multiple SPIFFE IDs per pod.
OIDC Discovery Provider
Publishes a JWKS endpoint that cloud providers (AWS, GCP, Azure) trust. This enables the JWT-SVID → cloud credential exchange without pre-shared secrets.Layer 2: Observability
Every operation across the platform emits OpenTelemetry data.Telemetry Pipeline
All telemetry flows through a single collection point:
The OTel Collector routes traces to Jaeger (
:16686) and metrics to Prometheus, which feeds Grafana dashboards (42 panels across 2 dashboards).