Basic Configuration
HTTP server listen address. Can be a TCP address (
:3592, 0.0.0.0:3592) or Unix domain socket (unix:/tmp/cerbos.http.sock).gRPC server listen address. Can be a TCP address (
:3593, 0.0.0.0:3593) or Unix domain socket (unix:/tmp/cerbos.grpc.sock).File permissions for Unix domain sockets. Must be specified in octal format.
TLS Configuration
Configure TLS/SSL encryption for secure connections.Path to the TLS certificate file.
Path to the TLS private key file.
Path to the CA certificate for verifying client certificates (mutual TLS).
Both
cert and key must be provided to enable TLS. If either is missing, TLS will be disabled.Admin API
The Admin API provides endpoints for managing policies, schemas, and server operations.Enable or disable the Admin API.
Username for Admin API authentication.
Base64-encoded bcrypt hash of the admin password.
CORS Configuration
Configure Cross-Origin Resource Sharing for HTTP API access from web browsers.Disable CORS entirely.
List of allowed origins. Use
['*'] to allow all origins.List of allowed request headers.
How long browsers can cache the preflight response.
Request Limits
Control the maximum size of authorization requests to prevent abuse.Maximum number of actions that can be checked for a single resource in one request. Must be between 1 and 500.
Maximum number of resources that can be checked in a single batch request. Must be between 1 and 500.
These limits help prevent resource exhaustion from overly large requests. Adjust based on your performance requirements and security needs.
Feature Flags
Enable Prometheus metrics endpoint at
/metrics.Log full request payloads for debugging. Use with caution in production.
Enable the API Explorer UI for testing API calls.
Advanced HTTP Settings
Fine-tune HTTP server timeouts and connection handling.Maximum duration for reading the entire request, including the body.
Maximum duration for reading request headers.
Maximum duration for writing the response.
Maximum duration to wait for the next request when keep-alives are enabled.
Advanced gRPC Settings
Fine-tune gRPC server connection handling and limits.Maximum size of a single gRPC request message in bytes. Default is 4MiB. Affects performance and resource utilization.
Maximum number of concurrent streams per connection. Set to 0 to allow unlimited streams.
Maximum age of a connection before it’s closed and recreated.
Timeout for establishing new gRPC connections.
Complete Example
Environment Variable Expansion
Configuration values can reference environment variables using${VAR_NAME} syntax:
Use
$$ to escape literal dollar signs in configuration values.