Firebase Authentication handles sign-in and identity verification. Cerbos uses Firebase custom claims and user metadata to make fine-grained authorization decisions, giving you real access control beyond what Security Rules can express.
Use Firebase custom claims like role, tier, and department as principal attributes in Cerbos authorization policies
Replace complex, hard-to-test Security Rules with version-controlled Cerbos policies that combine identity and resource context
Verify Firebase ID tokens server-side and call Cerbos from Cloud Functions, backend APIs, or any server environment
Firebase handles authentication, confirming who a user is. Cerbos handles authorization, deciding what that user can do. Together they give you a complete access control stack without coupling identity logic to business rules.
Cerbos lets you write fine-grained, context-aware authorization policies in human-readable YAML. Policies are decoupled from application code so product and security teams can update permissions without a release cycle.
Because Cerbos runs as a stateless Policy Decision Point (PDP) next to your application, authorization checks are sub-millisecond and scale horizontally with your infrastructure.
Firebase lets you set custom claims on user records via the Admin SDK, such as role, department, or subscription tier. These claims are included in the Firebase ID token. Pass them to Cerbos as principal attributes, and your policies can make fine-grained decisions based on these claims combined with resource attributes and request context.
Cerbos handles application-level authorization, while Security Rules protect direct Firestore and Storage access. If your app uses server-side logic (Cloud Functions, a backend API), Cerbos replaces the need for complex Security Rules by centralizing authorization in testable, version-controlled policies. For client-side direct access, Security Rules still apply.
Yes. Verify the Firebase ID token in your Cloud Function or API endpoint, extract the custom claims, and send them to Cerbos. The Cerbos PDP can run as a sidecar, a standalone service, or via Cerbos Hub, all of which work well with serverless backends.



What is Cerbos?
Cerbos is an end-to-end enterprise authorization software for Zero Trust environments and AI-powered systems. It enforces fine-grained, contextual, and continuous authorization across apps, APIs, AI agents, MCP servers, services, and workloads.
Cerbos consists of an open-source Policy Decision Point, Enforcement Point integrations, and a centrally managed Policy Administration Plane (Cerbos Hub) that coordinates unified policy-based authorization across your architecture. Enforce least privilege & maintain full visibility into access decisions with Cerbos authorization.