gatekeeper-library VS cloud-custodian

Compare gatekeeper-library vs cloud-custodian and see what are their differences.

cloud-custodian

Rules engine for cloud security, cost optimization, and governance, DSL in yaml for policies to query, filter, and take actions on resources (by cloud-custodian)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
gatekeeper-library cloud-custodian
8 32
600 5,195
0.8% 0.9%
8.8 9.5
11 days ago 7 days ago
Open Policy Agent Python
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

gatekeeper-library

Posts with mentions or reviews of gatekeeper-library. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-10.
  • Multi-tenancy in Kubernetes
    13 projects | dev.to | 10 Apr 2023
    Here is a library or rules for the Open Policy Agent.
  • open-policy-agent/gatekeeper-library: The OPA Gatekeeper policy library.
    1 project | /r/devopsish | 8 Mar 2023
  • Security scanning of k8s manifest files vs running cluster
    1 project | /r/kubernetes | 28 Sep 2022
    https://github.com/open-policy-agent/gatekeeper-library is the library of OPA Gatekeeper policies.
  • OPA Rego is ridiculously confusing - best way to learn it?
    6 projects | /r/kubernetes | 20 Sep 2022
  • Container security best practices: Comprehensive guide
    17 projects | dev.to | 16 Nov 2021
    Many more examples are available in the OPA Gatekeeper library project!
  • Expose Open Policy Agent/Gatekeeper Constraint Violations for Kubernetes Applications with Prometheus and Grafana
    9 projects | dev.to | 18 Jun 2021
    by default and exposes metrics on path ```/metrics``` . It can run locally on your development box as long as you have a valid Kubernetes configuration in your home folder (i.e. if you can run kubectl and have the right permissions). When running on the cluster a ```incluster``` parameter is passed in so that it knows where to look up for the cluster credentials. Exporter program connects to Kubernetes API every 10 seconds to scrape data from Kubernetes API. We've used [this](https://medium.com/teamzerolabs/15-steps-to-write-an-application-prometheus-exporter-in-go-9746b4520e26) blog post as the base for the code. ## Demo Let's go ahead and prepare our components so that we have a Grafana dashboard to show us which constraints have been violated and how the number of violations evolve over time. ### 0) Required tools - [Git](https://git-scm.com/downloads): A git cli is required to checkout the repo and - [Kubectl](https://kubernetes.io/docs/tasks/tools/) and a working K8S cluster - [Ytt](https://carvel.dev/ytt/): This is a very powerful yaml templating tool, in our setup it's used for dynamically overlaying a key/value pair in all constraints. It's similar to Kustomize, it's more flexibel than Kustomize and heavily used in some [Tanzu](https://tanzu.vmware.com/tanzu) products. - [Kustomize](https://kustomize.io/): Gatekeeper-library relies on Kustomize, so we need it too. - [Helm](https://helm.sh/): We will install Prometheus and Grafana using helm - Optional: [Docker](https://www.docker.com/products/docker-desktop): Docker is only optional as we already publish the required image on dockerhub. ### 1) Git submodule update Run ```git submodule update --init``` to download gatekeeper-library dependency. This command will download the [gatekeeper-library](https://github.com/open-policy-agent/gatekeeper-library) dependency into folder ```gatekeeper-library/library``` . ### 2) Install OPA/Gatekeeper If your K8S cluster does not come with Gatekeeper preinstalled, you can use install it as explained [here](https://open-policy-agent.github.io/gatekeeper/website/docs/install/). If you are familiar with helm, the easiest way to install is as follows: ```bash helm repo add gatekeeper https://open-policy-agent.github.io/gatekeeper/charts helm install gatekeeper/gatekeeper --generate-name
  • Who is doing image scanning on an admission controller? (Open source)
    3 projects | /r/kubernetes | 12 Feb 2021
    Gatekeeper library has example policies for restricting image repositories: https://github.com/open-policy-agent/gatekeeper-library/tree/master/library/general
  • Mental models for understanding Kubernetes Pod Security Policy PSP
    4 projects | /r/kubernetes | 16 Jan 2021
    You should check out the Gatekeeper project. There's plenty of templates available for use without having to write a single line of rego for most use cases (e.g https://github.com/open-policy-agent/gatekeeper-library)

cloud-custodian

Posts with mentions or reviews of cloud-custodian. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-22.
  • Cutting down AWS cost by $150k per year simply by shutting things off
    8 projects | news.ycombinator.com | 22 Jan 2024
    > The best optimization is simply shutting things off

    This is the way.

    A similar idea has been bouncing around in my mind for a while now. An ideal, turnkey system would do the following:

    - Execute via Lambda (serverless).

    - Support automated startup and shutdown of various AWS resources on a schedule influenced by specially formatted tags.

    - Enable resources to be brought back up out of schedule when demand dictates.

    - Operate as a TCP/HTTP proxy that can delay clients so that a given service can be started when it is dormant or, even better, the service isn't serverless but you want it to be. This can't work for everything, but perhaps enough things such that the need to run always on services is reduced.

    Cloud Custodian [1] can purportedly do some of this, but I've been reluctant to learn yet another YAML-based DSL to use it.

    So this is my "make things designed to be always-on serverless instead" project and the work AWS has done to make Java apps function on Lambda keeps me thinking about the potential to take things that 1) have a relatively long startup time and 2) are designed to be long running service loops, and find a way to force them into the serverless execution model.

    [1] https://cloudcustodian.io/

  • When have you screwed up, bad?
    1 project | /r/sysadmin | 6 Dec 2023
    Goal was to clear up anything old and set us up to rotate keys in use. Why did I do it in the end of December? It was a quarterly goal and I learned to push those across the line if I wanted a good review. Great incentive, that one. I used Cloud Custodian for this. It has a terrible bug where the code says you'll be acting on days since the key was used but actually is reading days since it was created.
  • Open-Source tools for monitoring ML/AI usage- Recommendations?
    1 project | /r/devops | 4 Nov 2023
    What is wrong with https://github.com/cloud-custodian/cloud-custodian?
  • Automate deletion of aws ebs snapshots older than year
    1 project | /r/sysadmin | 14 Apr 2023
    You can start reading about it here.
  • Optimizing cost on an app which is not used 24/7
    2 projects | /r/aws | 23 Feb 2023
    Use a tool like this https://cloudcustodian.io/ to manage instance on/off hours or go fargate.
  • Going for the CCP with a Compliance background. Any insight on what direction to pursue in AWS?
    1 project | /r/AWSCertifications | 10 Feb 2023
    Certs aside, there are some great compliance tools out there that you might want to become familiar with. Here is one that comes to mind (is open-source): https://cloudcustodian.io/
  • What are some of the community's best recommendations and use cases for Cost Optimization and FinOps
    1 project | /r/aws | 22 Dec 2022
  • EC2 start and stop via Lambda
    3 projects | /r/aws | 3 Dec 2022
    I'd use a combination of Cloudcustodian for start/stop scheduling and Apprise for notifications.
  • Tag Enforcement
    1 project | /r/aws | 7 Nov 2022
    Cloud custodian is a good utility if config rules doesn’t satisfy your needs. It’s also cross platform.
  • 26 AWS Security Best Practices to Adopt in Production
    1 project | dev.to | 21 Sep 2022
    AWS Security with open source – Cloud Custodian is a Cloud Security Posture Management (CSPM) tool. CSPM tools evaluate your cloud configuration and identify common configuration mistakes. They also monitor cloud logs to detect threats and configuration changes.

What are some alternatives?

When comparing gatekeeper-library and cloud-custodian you can also consider the following projects:

OPA (Open Policy Agent) - Open Policy Agent (OPA) is an open source, general-purpose policy engine.

terraform - Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.

helm-charts - Prometheus community Helm charts

ScoutSuite - Multi-Cloud Security Auditing Tool

opa-scorecard

steampipe - Zero-ETL, infinite possibilities. Live query APIs, code & more with SQL. No DB required.

tfsec - Security scanner for your Terraform code

gatekeeper - 🐊 Gatekeeper - Policy Controller for Kubernetes

conftest - Write tests against structured configuration data using the Open Policy Agent Rego query language

fixinventory - Fix Inventory consolidates user, resource, and configuration data from your cloud environments into a unified, graph-based asset inventory.

opa-image-scanner - Kubernetes Admission Controller for Image Scanning using OPA

cloudquery - The open source high performance ELT framework powered by Apache Arrow