Skip to content

OpenFGA vs SpiceDB vs Cerbos vs OPA vs AWS Verified Permissions: Which Authorization Platform to Choose

A vendor-neutral evaluation of AWS Verified Permissions, Cedar, OpenFGA, SpiceDB, Cerbos, and OPA: deployment, consistency, cost drivers, and a decision tree.

Ayhan Sipahi Ayhan Sipahi

Building custom authorization works for many applications. Distributed systems increasingly benefit from dedicated authorization infrastructure that handles policy evaluation, relationship management, and fine-grained access control as a service. A reasonable default: keep authorization in an embedded library while it stays inside one service, and adopt an external engine once it crosses a service boundary.

The choice of engine follows from your dominant model. Cedar and AWS Verified Permissions suit attribute-driven decisions on AWS. SpiceDB and OpenFGA suit access that follows relationships between users and resources. Cost, availability and consistency needs, and policy language lock-in decide the rest.

Note

The Scalable Permission Systems series covers building authorization internally with TypeScript and CASL. The complementary question is when to stop building and start integrating an external authorization system.

What Changed in the Authorization Market#

OPA/Styra disruption: Apple acqui-hired Styra’s co-founders and core team. Styra DAS (the commercial OPA management platform) is transitioning to community-maintained open source as enterprise commercial support ends. OPA remains under CNCF governance, but enterprise users face uncertain commercial support. Many are evaluating alternatives like Cerbos, Cedar, and Permit.io.

ReBAC mainstream adoption: Google Zanzibar-inspired systems (SpiceDB, OpenFGA, Permify) have moved from academic curiosity to production infrastructure. OpenAI runs SpiceDB on AuthZed Dedicated to authorize apps in ChatGPT, and AuthZed’s case study cites more than 37 billion documents with fine-grained access controls.

Policy language fragmentation: Cedar (AWS), Rego (OPA/CNCF), Polar (Oso), OpenFGA DSL, and Cerbos YAML/CEL are five separate policy languages, and there is no standard. Cedar and OpenFGA DSL are gaining momentum; OpenFGA moved to CNCF incubation in late 2025.

AWS Verified Permissions price reduction: AWS reduced pricing for single-authorization APIs (IsAuthorized, IsAuthorizedWithToken) by up to 97% to $5 per million requests in the published US rate card. Batch APIs (BatchIsAuthorized, BatchIsAuthorizedWithToken) and policy management APIs use separate per-call or tiered schedules. See Amazon Verified Permissions Pricing (opens in new tab). This makes cloud-native fine-grained authorization economically viable for many high-volume applications when you model the right API mix.

Market consolidation: Permify was acquired by FusionAuth. WorkOS acquired Warrant (Zanzibar-based FGA). Okta sells its managed OpenFGA service as Auth0 FGA. The space is consolidating around a few well-funded players.

RBAC, ABAC, and ReBAC#

Platform selection follows from the access model you already have, so it is worth naming that model before reading any feature matrix.

RBAC (Role-Based Access Control)#

Roles are assigned to users. Permissions are attached to roles. This works well when roles are stable and access does not depend on resource context. It breaks down with dynamic access requirements, multi-tenancy, and resource-level sharing. Every platform supports RBAC as a baseline, so it rarely narrows a shortlist.

ABAC (Attribute-Based Access Control)#

Decisions are based on attributes of the user, resource, action, and environment. ABAC excels at conditional logic: time-based access, location restrictions, compliance rules. Policy languages like Cedar, Rego, and Cerbos YAML/CEL express ABAC well. The trade-off: ABAC is more expressive but harder to audit and reason about than RBAC.

ReBAC (Relationship-Based Access Control)#

Access is determined by relationships between entities. This is the Google Zanzibar paradigm: “User X is editor of Document Y, which is in Folder Z.” Platforms like SpiceDB, OpenFGA, and Auth0 FGA implement ReBAC natively. The trade-off: ReBAC is excellent for collaborative applications but requires maintaining a relationship graph, which introduces the dual-write problem.

Layering Models in One System#

Systems in production usually layer them: RBAC carries the baseline, ABAC adds contextual conditions such as time, IP, or a risk score, and ReBAC covers resource-level sharing and inheritance. An ACL on a specific resource acts as a local override. Permit.io and Oso Cloud are built for that layering; with other platforms you stack the systems yourself.

Cloud Provider Platforms#

AWS Verified Permissions + Cedar

Cedar is declarative, statically analyzable, and fast. Core properties of its authorizer and type checker are proven in Lean; your own policies still need their own tests. The Cedar team’s OOPSLA 2024 paper measured its authorizer at 28.7-35.2x faster than OpenFGA and 42.8-80.8x faster than Rego on randomly generated inputs. Note that these benchmarks compare fundamentally different architectures: Cedar evaluates local policies while OpenFGA traverses a relationship graph, so direct speed comparisons should be interpreted with that context. Single authorization APIs are $5 per million requests after the reduction; batch and policy management rates differ. See Amazon Verified Permissions Pricing (opens in new tab) and AWS Cognito + Verified Permissions for SaaS for a cost breakdown.

Cedar and Verified Permissions are separate choices. Cedar itself is Apache-2.0 open source: the Rust core, cedar-java, cedar-go, and the cedar-wasm crate for JavaScript and TypeScript run it in-process on any cloud. Verified Permissions is the managed AWS service that stores Cedar policies and evaluates them behind a regional API. The AWS lock-in sits in the service. A team that starts with the embedded SDK and later moves to Verified Permissions (or leaves it) keeps its policies; it changes where they are stored and how they are evaluated.

Integration is native with Cognito, API Gateway, AppSync, and Lambda. In a SaaS product, Cognito handles authentication and tenant-aware token generation while Verified Permissions makes the fine-grained decision from those tokens. The main limitation is that Cedar is ABAC-focused with no built-in relationship graph. If you need Google Docs-style sharing, Cedar alone is insufficient.

Microsoft Entra ID

Entra ID is an identity platform with coarse-grained authorization capabilities. It is not a fine-grained authorization engine. The Conditional Access engine evaluates signals in real time: user identity, device state, IP location, sign-in risk, and application context. It answers “can this user access this application?” and stops there. Resource-level questions such as “can this user edit this specific document?” fall outside its scope.

What Entra provides: app roles as JWT claims for simple RBAC, group-based authorization, custom security attributes (available in all Entra ID editions, used in Azure ABAC conditions but not emitted as token claims), Entra External ID for B2C/B2B, and Workload ID for non-human identities. Entra Permissions Management, the multicloud CIEM product, was retired on November 1, 2025. Microsoft points its former customers to Delinea, or to the CIEM features that remain in the Defender CSPM plan of Microsoft Defender for Cloud.

Fine-grained application-level authorization (ABAC/ReBAC), policy-as-code engines, and relationship-based access control sit outside that scope. For a resource-level decision like “can user X edit row Y in tenant Z,” you need an external authorization system: Entra handles identity verification, session management, and risk assessment, and an external PDP (Cerbos, OPA, AWS Verified Permissions, or SpiceDB) decides from Entra’s JWT claims plus resource context.

Entra earns its place in a Microsoft-ecosystem enterprise for workforce identity, Conditional Access, and compliance, with one of those engines behind it.

Google Cloud IAM + Identity Platform

Firebase Authentication with Identity Platform supports SAML, OIDC, multi-tenancy, and MFA. But Google does not offer a dedicated fine-grained authorization service comparable to AWS Verified Permissions. Custom claims on tokens work for simple RBAC but do not scale for complex authorization models. For Firebase and GCP applications with simpler needs, that is often enough.

Independent Vendors and Open Source#

OpenFGA: Zanzibar-inspired, Apache-2.0, and a CNCF incubating project. It runs as a self-hosted server (binary, container, or Helm chart) on PostgreSQL or MySQL, with SQLite in beta. It is ReBAC-focused; conditions on relationships cover some ABAC cases. The same engine is available as a managed service, Auth0 FGA, which is built on OpenFGA, so the modeling language stays the same when a team moves between self-hosted and managed.

Auth0 FGA: The managed OpenFGA service from Okta. If Auth0 or Okta already issues your tokens, Auth0 FGA stays inside that account. Auth0 describes it as handling billions of authorization tuples and millions of requests per second, with a 99.99% SLA for multi-region deployment.

SpiceDB/Authzed: The most mature open-source Zanzibar implementation. OpenAI runs it on AuthZed Dedicated for apps in ChatGPT (37B+ documents with fine-grained access controls, per AuthZed’s case study). ZedTokens let each request choose how fresh its data must be (see Stale Reads and the New Enemy Problem). ReBAC-focused; ABAC requires workarounds. Self-hosted requires PostgreSQL/CockroachDB and Kubernetes expertise. For a detailed comparison with Auth0 FGA, see SpiceDB vs Auth0 FGA: Relationship-Based Authorization.

Cerbos: Purpose-built application authorization engine using YAML and CEL, which keeps a team out of Rego and Cedar. Deploys as a single binary, container, or sidecar, and the learning curve is low. No built-in relationship graph; it must be paired with another system for ReBAC.

OPA (Open Policy Agent): CNCF graduated project and general-purpose policy engine, with its strongest ecosystem in infrastructure policy (Kubernetes admission control). Rego is powerful, but its Datalog roots make it unfamiliar to most application developers, so budget real ramp-up time. The Styra acqui-hire has created uncertainty around commercial support.

Permit.io: Authorization-as-a-service built on OPAL, with OPA, OpenFGA, or Cedar as backend engines. That multi-engine layer means a later engine switch does not force a full rewrite.

Keycloak: CNCF incubating project for identity and access management, self-hosted, with authorization bundled in. Java-based and resource-heavy: the Keycloak sizing guide starts from about 1,250 MB of RAM per Pod, with realm caches and 10,000 cached sessions loaded. Not purpose-built for fine-grained authorization.

WorkOS FGA: Acquired Warrant (Zanzibar-based FGA). Extends RBAC with hierarchical, resource-scoped access control, integrated with SSO (SAML), Directory Sync (SCIM), and Audit Logs in a single B2B SaaS bundle.

Where the Decision Point Runs#

Where the policy decision point runs matters as much as which engine runs it. That choice sets the latency floor, the blast radius when the engine is unavailable, and how much infrastructure authorization consumes.

Central Authorization Plane

Authorization Sidecar

Service Layer

API Gateway Layer

sync

sync

sync

query

query

query

emit

emit

emit

API Gateway

Coarse-Grained AuthZ
JWT + Role Check

Service A

Service B

Service C

PDP Sidecar A
Cedar / OPA / Cerbos

PDP Sidecar B

PDP Sidecar C

Policy Store
Git-synced policies

Relationship Store
SpiceDB / OpenFGA

Audit Log
Centralized decisions

Client

Central Service, Sidecar, or In-Process#

DeploymentStrengthWeaknessFits
Central PDP service, called over the networkOne source of truth, simple audit and policy managementSingle point of failure, a network hop per decisionLow decision volume, few services
Sidecar container next to each service, policies synced from a management planeLocal evaluation, no network dependency for a decisionResource cost per pod, sync complexity, eventual consistencyKubernetes, high volume, latency-sensitive paths
Embedded library in-process (Casbin, CASL, Cedar SDK)Fastest path, no extra infrastructureLanguage-specific, policies hard to manage across services, no central auditSingle-language stack, simple policies

Gateway Coarse, Service Fine#

These tiers combine well, which is why the diagram above shows both. The gateway answers “can this user reach this API?” from a JWT and a role check. The service answers “can this user perform this action on this record?” through a sidecar or embedded PDP, with relationship data synced from a central authorization service and audit records aggregated centrally. AWS API Gateway with a Cognito authorizer and Verified Permissions is one implementation, Kong with the OPA plugin another. Coarse checks up front keep the fine-grained decision volume, and its cost, manageable.

When the Decision Point Is Unreachable#

A central PDP or a remote relationship store turns every outage into an authorization question: allow or deny? Fail closed is the safe default. OWASP’s authorization guidance says to deny by default and to handle every failed check. Envoy’s external authorization filter follows the same rule: failure_mode_allow defaults to false, so the filter returns 403 when the authorization service is unreachable or answers with a 5xx. Fail open only on a route where a wrong allow costs less than an outage, and record that choice per route.

A decision cache softens the dependency, but its TTL is a revocation window. A removed permission keeps working until the cached allow expires. OWASP makes the same point about token introspection caches: bound the cache duration to the freshness the decision needs. Keep allow TTLs short, and invalidate on the permission changes the application already sees.

Verified Permissions adds latency and a quota to plan for. It is a regional API, so every decision pays a network round trip to the Region, and AWS advises choosing the Region endpoint that keeps that latency low. The Lambda authorizer that Verified Permissions generates for API Gateway hides part of the cost by caching decisions for 120 seconds by default, which is a two-minute revocation window of the kind described above. The default quota is 200 IsAuthorized requests per second per policy store in each Region, adjustable through Service Quotas. Throttled calls need retries with exponential backoff. 100 million decisions a month average about 39 per second, but peak traffic decides the quota to request.

Stale Reads and the New Enemy Problem#

Zanzibar-style stores add a second question: how fresh must the relationship data be? The failure mode has a name, the New Enemy Problem: a stale cache returns permission information that is no longer true. A typical case: Alice removes Bob from a folder, then adds a confidential document to it. If Bob’s check reads the graph from before the removal, he can open the new document.

SpiceDB handles this per request with ZedTokens. A write returns a token, the application stores it with the resource, and later checks ask for data at_least_as_fresh as that token. Checks default to minimize_latency, which favors cached data, and fully_consistent skips the cache at a latency cost. OpenFGA exposes a coarser switch: MINIMIZE_LATENCY (the default) may serve from cache, and HIGHER_CONSISTENCY skips it. With caching disabled, which is OpenFGA’s default, every query is strongly consistent.

Both properties belong in the evaluation next to the access model:

EngineWhere the decision runsHow data freshness is controlled
Cedar (embedded SDK)In-process, no network hopThe caller passes entities with each request, so freshness is whatever the caller loaded
AWS Verified PermissionsRegional AWS API callPolicies live in the service; entities arrive with each request
CerbosStateless PDP as a sidecar or service next to the applicationAttributes arrive with each request; policies are synced to the PDP
OPASidecar or daemon evaluating in memoryBundles are polled from a server, so the polling interval bounds staleness; with persistence on, OPA restarts from the last activated bundle
OpenFGA / Auth0 FGANetwork call to the server or managed servicePer request: MINIMIZE_LATENCY or HIGHER_CONSISTENCY
SpiceDB / AuthzedNetwork call to the clusterPer request: minimize_latency, at_least_as_fresh (ZedToken), at_exact_snapshot, fully_consistent
Oso CloudManaged API call; optional fallback nodes run a read-only copy in your infrastructure, and the client switches to them on connection errors or 5xx responsesWrites go to Oso Cloud; fallback nodes sync policies and facts every 30 minutes and can lag behind during that interval
Permit.ioCloud PDP hosted by Permit, or an Edge PDP in your VPC or cluster (sidecar or central service)OPAL pushes policy and data updates to Edge PDPs, which keep answering from their local copy when Permit’s cloud is unreachable
KeycloakNetwork call to the Keycloak server, which evaluates the policies and issues an RPTPermissions are evaluated when the RPT is issued and travel in its permissions claim; an enforcer that validates the RPT locally relies on that snapshot until the token expires

Local evaluation (Cedar, Cerbos, OPA, a Permit Edge PDP) keeps deciding when the network fails, but its data can lag. Oso fallback nodes give a managed API the same escape hatch, with the sync interval as the lag. Graph stores can return fully consistent answers on request; every check then pays a network hop and needs a designed fail-closed path.

What Drives the Cost#

Cost tracks decision volume, deployment shape, and team expertise more than list price, and each platform scales with a different driver. Verified Permissions publishes a per-request price, so its cost follows decision count directly: 100 million single IsAuthorized calls a month at $5 per million come to about $500. The self-hosted engines scale with pods, replicas, and data size instead, so price those drivers for your own deployment:

PlatformWhat the bill scales withInfrastructureOperational Overhead
AWS Verified PermissionsRequest count and API mix (single, batch, policy management)None (managed)Low
Cedar (embedded SDK)CPU inside your existing servicesNone beyond the applicationLow
OpenFGA (self-hosted)Server replicas plus a PostgreSQL or MySQL database sized for tuple countContainers + DBMedium
Auth0 FGABundled or custom pricingNone (managed)Low
SpiceDB (self-hosted)Cluster size, datastore (PostgreSQL or CockroachDB) sized for relationship count, and the share of checks that bypass the cacheK8s + DB clusterMedium-High
Authzed (managed)Custom pricingNone (managed)Low
Cerbos (self-hosted)Number of PDP instances (one per pod as a sidecar, fewer as a service)Minimal containersMedium
OPA (sidecar)Number of pods carrying a sidecar, plus the bundle serverPer-pod sidecarMedium
KeycloakJVM instances, each starting around 1,250 MB of RAM in the sizing guideJava VMsHigh

Tip

These drivers cover infrastructure only. Factor in team learning time for the policy language, integration development, and ongoing policy maintenance. Operationalizing a self-hosted open-source engine still costs engineering time even when the license is free.

Narrowing the List#

Build vs. Integrate#

The first decision is whether you need an external authorization system at all. After that, two questions pick the model: does access follow relationships between users and resources, and do decisions also depend on attributes? Most systems that answer yes to both end up layering models, as described above.

Yes

No

No

Yes

Yes

Yes

No

No

Yes

No

Authorization
Needs Assessment

Single service
with stable roles?

Embedded library
CASL, Casbin, Cedar SDK

Authorization crosses
service boundaries?

Resource-level sharing
or inheritance needed?

Attribute-based
conditions as well?

Multi-model platform
Oso Cloud, Permit.io,
or ReBAC + ABAC engine

ReBAC platform
OpenFGA, SpiceDB,
Auth0 FGA

Attribute-based
conditions needed?

ABAC platform
Cedar/AVP, Cerbos, OPA

RBAC-capable platform
Most options

Managed vs. Self-Hosted#

Yes

No

Yes

No

Yes

No

Deployment
Preference

AWS-native and OK
with vendor lock-in?

AWS Verified
Permissions

Need full control
over infrastructure?

Self-hosted
OpenFGA, SpiceDB, Cerbos,
OPA, Cedar SDK, Keycloak

Minimal operational
overhead?

Managed service
Authzed, Auth0 FGA,
Oso Cloud, Permit.io

Platform Selection Matrix#

AWS Verified Permissions (with Cedar), OpenFGA, SpiceDB, Cerbos, and OPA make up the usual shortlist. Oso Cloud and Permit.io are in the matrix as the multi-model options the decision tree points to, and Keycloak as the option for teams that already run it for identity. Verified Permissions and Cedar get separate columns because the lock-in belongs to the managed service; the language itself runs anywhere.

CriterionAVP (managed)Cedar (embedded)OpenFGASpiceDBCerbosOPAOso CloudPermit.ioKeycloak
RBACGoodGoodGoodGoodGoodGoodGoodGoodGood
ABACExcellentExcellentLimitedLimitedExcellentExcellentGoodGoodGood
ReBACLimitedLimitedExcellentExcellentLimitedLimitedExcellentGoodLimited
Learning CurveMediumMediumMediumMediumLowHighMediumLowHigh
Self-HostedNoYes (in-process)YesYesYesYesNoPartialYes
Managed OptionYesYes (AVP)Yes (Auth0 FGA)Yes (Authzed)Yes (Hub)Sunset*YesYesNo
Multi-CloudNoYesYesYesYesYesYesYesYes
Formal VerificationCore properties (Lean)Core properties (Lean)NoNoNoNoNoNoNo
Open SourceEngine only (Cedar)Yes (Apache-2.0)Yes (Apache-2.0, CNCF)YesYesYesNoOPAL onlyYes

*Styra DAS (the managed OPA option) is transitioning to community-maintained open source as enterprise commercial support ends following the Apple acqui-hire.

Tip

Policy language choice is one of the most consequential decisions in this space. Switching from Rego to Cedar (or vice versa) means rewriting every policy. For a detailed comparison of Cedar, Rego, OpenFGA DSL, and Cerbos YAML/CEL with side-by-side code examples, see Policy Language Comparison: Cedar vs Rego vs OpenFGA.

Where These Projects Go Wrong#

Picking the Tool Before Naming the Model#

Teams often pick a tool first and then try to fit their requirements into it. A team choosing SpiceDB because it sounds impressive will struggle if their authorization is primarily attribute-based. The opposite mistake is just as common: a monolith with straightforward roles does not need SpiceDB or AWS Verified Permissions, and CASL or a middleware check covers it. External systems earn their cost once authorization crosses a service boundary. Define the model first (RBAC, ABAC, ReBAC, or a layered mix), then select the platform that supports it natively.

The Dual-Write Problem#

External relationship stores require keeping authorization state synchronized with application data. Without a strategy (outbox pattern, CDC, reconciliation), authorization decisions will drift from application reality. Budget meaningful engineering time for this. For a detailed walkthrough with implementation patterns, see SpiceDB vs Auth0 FGA: Relationship-Based Authorization.

Policy Language and Vendor Lock-In#

Policy languages are not interchangeable: a migration means porting every rule and every test that guards it. Choose one you can commit to for years, or use an abstraction layer (like Permit.io) that supports several engines, and count the team’s learning investment as part of the price. The same caution applies to the project behind the language. The OPA/Styra acqui-hire showed that open source with a single commercial backer can lose that backer, so the governance model (CNCF, independent foundation, single vendor) belongs in the evaluation.

Two problems tend to surface after the platform decision. Authorization policies are code, so they need unit tests, integration tests, and a CI/CD pipeline; every major platform supports policy testing and teams still skip it. And an RBAC-only system eventually meets the “we need one exception” request, which is why a platform that can express more than roles is worth choosing before the exception arrives.

Living With the Choice#

The embedded-library default holds while authorization stays inside one service and roles stay stable. Override it when access crosses service boundaries, when users share individual resources, or when a compliance rule needs attributes the application layer does not carry. Run a proof of concept with your most complex authorization scenario before committing, because switching platforms in production is expensive.

Later parts of this series cover AWS Cognito + Verified Permissions for SaaS, SpiceDB vs Auth0 FGA, and Cedar vs Rego vs OpenFGA policy language comparison.

References#

External Authorization Systems

Part 1 of 4

A comprehensive guide to external authorization platforms for distributed systems. Covers platform selection, policy language comparison, cloud-native authorization with AWS, and relationship-based access control with SpiceDB and Auth0 FGA.

Related posts