Overview
Thecerbos server command starts the Cerbos Policy Decision Point (PDP) server. This is the main service that evaluates authorization requests against your policies.
Usage
Flags
Configuration
Path to the configuration file. Can also be set via the
CERBOS_CONFIG environment variable.Override configuration values. Can be specified multiple times.Format:
key=value (supports nested keys using dot notation)Example: --set=server.adminAPI.enabled=trueLogging
Set the log level for the server.Options:
debug, info, warn, errorCerbos Hub Integration
Use Cerbos Hub to pull the policy bundle for the given deployment ID. This overrides the storage driver defined in the configuration.Can also be set via the
CERBOS_HUB_DEPLOYMENT_ID environment variable.Use Cerbos Hub to pull the policy bundle for the given playground ID. This overrides the storage driver defined in the configuration.Can also be set via the
CERBOS_HUB_PLAYGROUND_ID environment variable.Legacy option to use Cerbos Hub to pull the policy bundle with the given label. This overrides the storage driver defined in the configuration.Can also be set via the
CERBOS_HUB_BUNDLE or CERBOS_CLOUD_BUNDLE environment variables.Debug
Address to start the gops debugger listener on.
Examples
Start the server with default configuration
Start with Admin API enabled and SQLite storage
Start with a custom configuration file
Start with Cerbos Hub deployment
Start with debug logging
Multiple configuration overrides
Environment Variables
The following environment variables can be used as alternatives to command-line flags:CERBOS_CONFIG- Path to configuration fileCERBOS_HUB_DEPLOYMENT_ID- Hub deployment IDCERBOS_HUB_PLAYGROUND_ID- Hub playground IDCERBOS_HUB_BUNDLE- Hub bundle label (legacy)CERBOS_CLOUD_BUNDLE- Hub bundle label (legacy alias)
Configuration
The server requires a configuration file (defaults to.cerbos.yaml in the current directory). The configuration file defines:
- Server settings (HTTP/gRPC ports, TLS, etc.)
- Storage backend (disk, git, blob storage, database, Hub)
- Schema validation settings
- Audit logging configuration
- And more
--set flag without modifying the configuration file.