Configuration
The configuration reference: services and Compose profiles, TLS modes, and every environment-variable group, all env-driven with nothing baked in.
Assay is configured entirely by environment variables: no hostnames or IPs are baked into an image, so the same build runs anywhere. deploy/.env.example is the full template, and cbctl assay init copies it to .env with strong randoms and blank site-specific fields for you to fill.
Services and profiles
One image runs as any of eight services (authz, safemode, asset, engine, planner, prioritize, verify, report), selected by FORGE_SERVICE_NAME. Compose groups containers into profiles so each step brings up only what it needs:
core: Postgres, Valkey, OpenBao, and the one-shot init.services: the eight application services.migrate: the one-shot migrator, run once per service.edge: Caddy, terminating external TLS; setASSAY_EDGE_SITEto the FQDN.observability: Prometheus scraping each service’s admin listener.
The edge path-routes each /v1 route to the service that owns it, because no single service exposes the whole surface.
TLS modes
FORGE_TLS_MODE selects how TLS is handled:
dev: self-signed, for local use only; refused in production.letsencrypt: automatic ACME certificates for a real FQDN.custom-ca: your own certificate, key, and CA bundle.offload: TLS terminates in front of Assay (a load balancer, ingress, or the edge profile) and the service listens in plaintext behind it. The right mode when something else already terminates TLS.
Variable groups
- Service identity:
FORGE_SERVICE_NAME,FORGE_ENV. - HTTP: listen addresses (keep the admin port off the public interface), CORS origins, trusted-proxy count.
- Database and Valkey: a DSN or an OpenBao secret path for short-lived credentials, pool sizing, timeouts.
- OpenBao: address, AppRole auth in production, and the KV, Transit, and PKI mount points.
- Auth: JWT issuer and audience, and the Transit key name that signs tokens.
- Assay product config (
ASSAY_prefix): the authz and evidence signing-key names (never the keys, which live only in OpenBao), the safe-mode default ceiling, blast-radius defaults, the beacon listener address, and the export destination. - Licensing (optional, fail-safe): an install’s own licensing URL and the public key that verifies an offline license. Unset is the offline posture, not an error, and neither ever gates a guardrail.