Back to services

cerbos

Cerbos is an open-core authorization management platform for authorizing every identity and governing every action across applications, gateways, workloads, and AI agents.

View alternatives to cerbos
Suggest edit
Open source
Self-hostable
Apache-2.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Note: We weren't able to fetch content from the official website this time, so the following is compiled from what we currently know. For details (especially commercial features and the latest configuration options), please refer to cerbos.dev and the official documentation.

Introduction

Cerbos is an open-source authorization service that handles the question of "what can a user do once they've logged in?" It doesn't handle authentication, and can be used with any identity provider (such as Auth0, Okta, Keycloak, or your own authentication system). Your application sends Cerbos a principal (who) + a resource (what) + an action (do what), and Cerbos returns allow or deny based on predefined policies.

Key Features

  • Policy as code: Write resource policies, principal policies, and derived roles in YAML. Policies can be stored in Git for version control and code review.
  • RBAC and ABAC: Supports role-based access control as well as attribute-based conditions (condition expressions use CEL), so you can express fine-grained, context-aware rules.
  • Derived roles: Dynamically assign roles to users based on context, such as "resource owner" or "member of the same department."
  • Policy testing: Provides a unit testing framework for policies that can be integrated into CI pipelines to verify permission rules before deployment.
  • Query Plan: Generates filter conditions to answer "which resources can this user access?", making it easy to combine with database queries.
  • Audit logs: Records every authorization decision, helping with compliance and troubleshooting.
  • Multi-language SDKs: Offers HTTP and gRPC APIs, plus SDKs for popular languages including Go, Java, JavaScript/TypeScript, Python, .NET, PHP, Ruby, and Rust.

Target Users and Use Cases

Well suited to development teams that need to implement complex permission models in their applications, such as multi-tenant SaaS, internal enterprise systems, and microservice architectures. With Cerbos, permission rules don't have to be hard-coded in each service. They can be managed centrally, and product or security teams can also take part in reviewing policies.

Core Strengths

  • Stateless, low latency: Cerbos's policy decision point (PDP) is stateless and can be deployed right next to your application, making decisions quickly and locally.
  • Decoupled from business code: Changing permission rules usually doesn't require redeploying the application.
  • Open source: The core PDP is licensed under Apache 2.0 and can be fully self-hosted.
  • Commercial platform: The company also offers Cerbos Hub, a hosted policy management platform for collaboratively authoring, testing, and distributing policies.

Deployment Options

Cerbos is written in Go and distributed as a single binary or a container image. Common deployment methods include:

  • Docker: Run the official image (such as ghcr.io/cerbos/cerbos) and mount a policy directory to get started.
  • Kubernetes: Deploy it as a standalone service using the official Helm Chart, or run it as a sidecar alongside your application.
  • Binary or system service: Run it directly on a host.

Policies can be loaded from sources such as a local directory, a Git repository, object storage, or a database, and hot reloading is supported.

Technical Requirements

  • Runtime environment: Linux, macOS, or a container environment.
  • Low resource footprint, making it suitable for sidecar deployment.
  • Applications need to call Cerbos through an SDK or the HTTP/gRPC API and provide principal and resource attributes in the request.