Skip to main content

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 with hexr.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).

What Gets Instrumented


Layer 3: Platform Services

The runtime services agents interact with — usually transparently through the SDK.

Service Mesh

All inter-service communication uses mutual TLS via Envoy proxies loaded with X.509-SVIDs from SPIRE. There are no API keys between services.

Layer 4: Developer Experience

What you interact with as a developer.

The Three-Command Workflow

SDK Modules


Layer 5: Management

Dashboard and APIs for platform operators.

Dashboard Pages

Cloud API (Hexr Cloud only)

REST API for tenant management, HCU metering, and programmatic access. Used by the CLI and dashboard.