OPA vs Cedar (Amazon Verified Permissions)

Charlie Egan

Rego, the policy language used by Open Policy Agent (OPA) and Cedar, a policy language developed by AWS, are two different policy as code languages capable of building externalized authorization. However, the languages are best compared in the context in which they are typically used. Policy code needs to be authored, packaged, distributed, evaluated, enforced and audited too – functions which cannot be provided by a language in isolation.

OPA is a general-purpose policy engine. It supports a range of policy as code use cases, including authorization, with the Rego language. OPA is an open source project created and maintained by Styra and is hosted by the Cloud Native Computing Foundation.Β 

Enterprise OPA Platform builds on the capabilities of OPA, offering a comprehensive authorization platform. The platform provides compliance, governance, no-code policy, and lifecycle management capabilities to scale policy as code authorization in complex, enterprise domains.

Cedar is an open source policy language for authorization policy. While it can describe authorization policies, being only a language, it is not a standalone solution. For policy to be enforced, Cedar code needs to be evaluated within a policy engine or product.

Amazon Verified Permissions is a managed service offered by AWS that leverages the Cedar language to enforce authorization policy. This service simplifies policy evaluation and enforcement within the AWS ecosystem where users call AWS endpoints rather than running a policy engine themselves.

Key Differences:

  • Availability: Amazon Verified Permissions is exclusive to AWS customers. In contrast, OPA and the Enterprise OPA Platform can be deployed on any public or private cloud, offering greater flexibility.
  • Use Cases: OPA is a general-purpose policy engine suitable for various use cases, while Cedar is only suitable for authorization policy. The Enterprise OPA Platform provides an extended set of tools and features built around OPA for enterprise needs.

See also OPA vs Cedar (Cedar Agent and OPAL)

Get Enterprise Authorization

The Enterprise OPA Platform is used by the largest organizations in the world to manage complex access control at scale while meeting security and compliance requirements.