# Cerbos

> Authorization management platform with an open-source policy decision point for enforcing fine-grained access control across apps, services, and AI agents.

Cerbos is an authorization management platform from Cerbos (a trading name of Zenauth Ltd), founded in 2021. It externalizes access control from application code into YAML policies evaluated by an open-source Policy Decision Point (PDP). The platform also includes a hosted control plane (Cerbos Hub), a data enrichment layer (Cerbos Synapse), and language SDKs for enforcement. The PDP is licensed under Apache 2.0.

## What It Is

Cerbos separates authorization logic from application code. Instead of scattered permission checks, an application sends a request containing a principal (who), a resource (what), and actions (what they want to do) to a Cerbos instance, which returns ALLOW or DENY based on the live policies. Policies are human-readable YAML that can be stored on disk, in cloud object storage, in a Git repository, or in a database. Changing a permission becomes a policy update rather than a code release.

The model supports RBAC, ABAC, ReBAC and PBAC. Policy types include resource policies, derived roles and principal policies, and conditions are evaluated at runtime from contextual attributes. Multi-tenant setups can use policy conditions and scoped policies.

## Platform Components

- **Cerbos PDP**: a stateless, open-source engine that evaluates requests against policies. It exposes CheckResources and PlanResources APIs over HTTP and gRPC, and Cerbos states decision times are under 1 ms.
- **Cerbos Hub**: a policy administration control plane for authoring, testing, versioning, distributing and auditing policies, including collaborative playgrounds and policy bundles for browser or serverless and edge use.
- **Cerbos Synapse**: fetches identity, resource and relationship data from external systems to enrich authorization requests.
- **PEP SDKs**: language-native client libraries for Go, Java, JavaScript/Node, .NET, PHP, Python, Ruby and Rust.

## AI Agents and Auditing

Cerbos positions the platform for governing AI agents, MCP servers, RAG pipelines and AI gateways, defining what each agent can access and revoking it through policy. It records decision logs showing who, what, when and which policy version applied. Cerbos says this supports audit readiness for frameworks such as SOC 2, ISO 27001, HIPAA and GDPR.

## Deployment

The PDP runs as a binary, container, or Helm chart, as a Kubernetes service or sidecar, as a systemd service, or in serverless environments such as AWS Lambda. Cerbos states it can run in cloud, self-hosted, on-premise or air-gapped setups. It connects to identity providers such as Okta, Auth0, Entra ID, Keycloak and AWS Cognito, and a playground is available online. The repository notes anonymous telemetry that can be disabled with an environment variable.

## Features
- Externalized policy-based authorization
- RBAC, ABAC, ReBAC and PBAC support
- YAML policies with derived roles and principal policies
- CheckResources and PlanResources APIs
- Stateless PDP deployable as binary, container, Helm chart, sidecar or Lambda
- Cerbos Hub for policy authoring, testing, versioning and distribution
- Cerbos Synapse for data enrichment
- Structured decision audit logs with policy version lineage
- Multi-tenant scoped policies
- AI agent, MCP server and RAG authorization
- Online playground
- Language SDKs

## Integrations
Kong, Gravitee, Kubernetes, Envoy, Trino, Neo4j, MCP, A2A, Chroma, FastMCP, Okta, Microsoft Entra ID, Auth0, AWS Cognito, Keycloak, LDAP, WorkOS, Clerk, Stytch, Prisma, SQLAlchemy, AWS Lambda

## Platforms
API, CLI, DEVELOPER_SDK, WEB, LINUX

## Pricing
Open Source, Free tier available

## Version
v0.58.0

## Links
- Website: https://www.cerbos.dev
- Documentation: https://docs.cerbos.dev/cerbos/latest/index.html
- Repository: https://github.com/cerbos/cerbos
- EveryDev.ai: https://www.everydev.ai/tools/cerbos
