Cloud Custodian vs Open Policy Agent
Cloud Custodian
cloudcustodian.ioOpen Policy Agent
openpolicyagent.orgSide by side
| Figure | Cloud Custodian | Open Policy Agent |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | — | Yes |
| Windows | Yes | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| API | — | Yes |
| Self-hosted | Yes | Yes |
| Plans published | 1 | 1 |
| Spec score · Infrastructure Policy as Code Tools | 8.1 (#10) | 8.2 (#8) |
| Community support | The project points users to Slack, a mailing list, GitHub discussions, and community meetings that are open to users and developers of every skill level. | The official site links to an OPA Slack community for users to talk with other users and maintainers. |
| Purpose | Cloud Custodian manages cloud resources by filtering and tagging them, then applying actions through policies written in a YAML domain specific language. | OPA is an open-source, general-purpose policy engine that unifies policy enforcement across software systems. |
| Security reporting | The project asks people to report security vulnerabilities to its security team at [email protected] and says it will acknowledge reports by email. | The project asks security reporters to email its security team and says it aims to acknowledge reports and keep reporters informed about remediation. |
Plans
In their own words
Cloud Custodian
Cloud Custodian manages cloud resources through policies written in YAML. Each policy names a resource type, filters for selecting resources, and actions to apply to matches. It supports security policy enforcement, compliance, tag policies, cleanup of unused resources, and cost management for AWS, Azure, and Google Cloud Platform resources. Policies can respond to provider events through serverless features or run on a cron schedule. Users can validate policies and preview matching resources in dry-run mode before actions execute. Runs can produce policy metrics, structured resource records, and logs for cloud metrics, storage, and logging services. Documented event connections include AWS CloudWatch Events and Config Rules, Azure EventGrid, and GCP AuditLog and Pub/Sub. Installation is documented for Linux, macOS, and Windows, with Docker and Kubernetes operation also described. Kubernetes, Tencent Cloud, and OpenStack support are in beta; Terraform integration is in alpha. Cloud Custodian is free at free and open source under Apache 2.0. An AWS constraint is that event-triggered policies run only in the same region and account, while periodic policies may run elsewhere.
Open Policy Agent
Open Policy Agent (OPA) is a free, open-source policy engine that separates policy decisions from the systems that enforce them. It evaluates policies against structured input and can return structured data, making it applicable to microservices, Kubernetes, CI/CD pipelines, and API gateways. Policies use Rego, a declarative language for complex hierarchical data. Applications can request evaluations through a REST API, Go API, WebAssembly runtimes, or custom evaluators using OPA's intermediate representation. Bundles distribute policy and data to OPA instances, while discovery bundles carry configuration. Management interfaces support policy distribution, health and status checks, and decision logs. Listed integrations include Kubernetes, Terraform, Envoy, and code editors; the documentation recommends OPA Gatekeeper for Kubernetes admission control. Installation options cover macOS, Linux/Unix, Windows, and Docker. OPA's security guidance says API authentication and authorization are off by default and recommends configuring TLS, authentication, and authorization when securing the API. OPA is a graduated Cloud Native Computing Foundation project.