# Cerbos

Cerbos is an open-source, language-agnostic authorization platform that lets you define context-aware access-control rules for your application resources in YAML and enforce them at runtime through a scalable,. It is open source and self-hosted, installable on Kubernetes (Helm).

Canonical page: https://ourlocalhost.com/app/7808/cerbos

## Description

Cerbos is an open-source, language-agnostic authorization platform that lets you define context-aware access-control rules for your application resources in YAML and enforce them at runtime through a scalable, stateless Policy Decision Point (PDP) service, giving developers and security teams a centralized, API-driven way to decide who can do what, with policies versioned and deployed through Git-ops workflows.

## Platform availability

Available on 4 of 10 platforms: Helm, Mac, Linux, Any server.

## Desktop and other devices

Mac, Linux.

## Health score

85/100 (Excellent), based on 5 of 5 factors.
- Maintained: 100 (last commit 1 day ago)
- Popular: 73 (4,680 GitHub stars)
- Easy to install: 55 (4 install platforms, install notes)
- Light to run: 100 (64 MB minimum RAM)
- Security check: 86 (no serious findings, 2 minor, CI, tests, OpenSSF Scorecard 8.2/10)

## Links

- Kubernetes (Helm): https://artifacthub.io/packages/helm/cerbos/cerbos
- Official website: https://www.cerbos.dev/
- GitHub: https://github.com/cerbos/cerbos
- desktop: https://github.com/cerbos/cerbos/releases/latest
- Documentation: https://docs.cerbos.dev

## Common questions

### Which ports does the Cerbos PDP container need published, and what are they for?

The Docker container should publish port 3592 for the HTTP API your application calls, and 3593 for gRPC. If these ports aren't published, your app can't reach Cerbos at all.

### Why is Cerbos denying every request after I start it?

If no policies are loaded, every request gets denied (EFFECT_DENY) because Cerbos has no rules to check. Create a policies folder (e.g. mkdir -p cerbos-quickstart/policies) and mount it into the container before starting.

### Where can policy files be stored besides local disk?

Policies can be stored on disk, in cloud object stores, in git repos, or dynamically in supported databases such as SQLite, and the PDP continually monitors the configured storage.

### How can I distribute policy updates to multiple self-hosted PDPs?

Sign up for a free Cerbos Hub account, which lets you author and share policies in interactive playgrounds and quickly distribute policy updates to your whole PDP fleet.

### How does Cerbos integrate with an identity provider like Keycloak?

Cerbos handles authorization while the IdP (such as Keycloak) handles authentication; documentation includes JWT-based authentication integrations for working with JWT claims, plus examples for Auth0, Okta, FusionAuth and AWS Cognito.

## Alternatives

- Aserto: Aserto is an application authorization as a service.
- Auth0: You can connect any application (written in any language or on any stack) to Auth0 and define its Connection, the method used to authentica…
- Authelia: Authelia is an open-source authentication and authorization server that provides login, multi-factor authentication, and single sign-on for…
- Axiomatics
- GoRules: Model business logic in decision tables, visual flows, and natural-language rules.
- Keycloak: Keycloak is an open-source Identity and Access Management platform for adding authentication to self-hosted applications.
- Ory: Ory builds cloud-native authentication (login), authorization (permission), delegation (OAuth2, OpenID Connect), and user management softwa…
- authentik: Authentik is an open-source identity provider that adds flexible single sign-on, user management, and common sign-in protocol support to se…

---
Source: Our Local Host (https://ourlocalhost.com/app/7808/cerbos), the self-hosted and open-source app directory.
