Skip to content

Episode 122: Cedar v. Rego v. OpenFGA

July 8, 2025 · 2 min read

Cedar’s simple and intuitive syntax supports common authorization use-cases with readable policies, naturally leveraging concepts from role-based, attribute-based, and relation-based access control models. In this episode we'll discuss a paper that compares Cedar to two open-source languages: OpenFGA and Rego. And why the subjective conclusion is that Cedar has equally or more readable policies, and objectively better performance.

#Cedar, Rego and OpenFGA: how they differ

Cedar, Rego and OpenFGA are open-source languages for writing authorization rules as policies outside application code. Cedar, created at Amazon Web Services, covers role-based, attribute-based and relationship-based access control in one syntax, checks policies against a schema, and has a formal model that lets tools prove properties of a policy set. Rego is the policy language of Open Policy Agent, inspired by Datalog. OpenFGA models relationships between users and objects, inspired by Google's Zanzibar. The 2024 Cedar paper discussed in this episode compares the three: it judges Cedar's policies equally or more readable, which it calls a subjective finding, and measures Cedar's evaluation as faster.

Gluu builds Cedarling, an embeddable Cedar policy decision point that is part of the Linux Foundation Janssen Project.

#Speakers

#Homework

#Takeaways

  • 2025 is the dawn of the "Golden Age of Automated Reasoning"! Cedar creates a bridge to analyzable security via some fancy math which implementers don't need to understand. This means Cedar enables enterprises to “prove” that their policies are secure by evaluating universal statements--even about the future, like "No S3 bucket may ever be public".
  • Rego fell into the "Turing tar-pit"--building a Rego analyzer would be difficult, as Datalog program equivalence is undecidable. Zanzibar lacks the search flexibility needed for complex ABAC filters. Cedar was developed to address deficiencies in the respective safety and flexibility of those existing solutions.
  • Automated reasoning scales--not just from a performance, but from a governance perspective. Enterprises can eliminate the risk of a policy delta when upgrading complex systems or databases.
  • Schema is Cedar's super power. Enterprises must define the properties of any entity about which there is a Cedar policy. That's a good thing...
  • Cedar adoption by MongoDB for fine-grained authorization is perhaps the start of a trend by database vendors. Cedar schema maps one-to-one with database models.

We use analytics cookies to measure which pages are useful, so we can improve them. If you accept, our analytics provider Reo.dev and its third-party partners also collect device and network data to identify the company you visit from. None of this is set if you reject. Essential cookies needed for the site to work are always on. See our privacy policy.