Skip to content

Configuration (control plane)

Environment variables read by control (internal/platform/config).

env vardefaultdescription
AF_PORT8080HTTP API listen port
AWS_REGIONus-east-1AWS region (Cognito / DynamoDB / KMS)
AF_DEV_MODEtruein-memory store + dev resolver; set false for AWS/prod (fail-closed identity)
AF_COGNITO_USER_POOLCognito user pool id (required when AF_DEV_MODE=false)
AF_COGNITO_CLIENT_IDCognito app client id (token audience)
AF_DYNAMO_TABLEagent-fabricDynamoDB single-table name (AWS mode)
AF_OVERLAY_CIDR100.64.0.0/10overlay IP allocation range (IPAM)
AF_DERP_REGIONSus-east-1,us-west-2comma-separated relay regions for fallback
AF_KMS_KEY_IDcontrol CMK (alias/agent-fabric-control) used to seal keys
AF_CAP_KEYcapability HMAC key, plaintext (dev; empty → random per start)
AF_CAP_KEY_ENCcapability HMAC key, base64 KMS ciphertext (prod; wins over AF_CAP_KEY)
AF_NETMAP_KEYEd25519 netmap signing seed, hex (dev; empty → ephemeral)
AF_NETMAP_KEY_ENCEd25519 seed, base64 KMS ciphertext (prod; wins over AF_NETMAP_KEY)
AF_RELAY_URLrelay endpoint advertised to nodes (host:port); enables relay coordination
AF_RELAY_SECRETshared HMAC secret with the relay (ticket signing + usage-report auth)
AF_BILLING_SECRETshared secret authenticating POST /svc/entitlement (billing webhook)
AF_STRIPE_WEBHOOK_SECRETStripe webhook signing secret (whsec_…) for POST /svc/stripe/webhook → entitlement
AF_TLS_CERTpath to TLS cert (enables HTTPS for self-host)
AF_TLS_KEYpath to TLS key