Code Monkey home page Code Monkey logo

policy-hub-cli's Introduction

PolicyHub CLI

This is the home of the PolicyHub CLI, a CLI tool that makes Rego policies searchable.

Goals

Policies are everywhere. Compliance policies, security policies, policies that define organisational best practices. The Open Policy Agent project provided a single policy language, Rego, that can be used to automate policy enforcement. However currently there is no existing mechanism that allows you to search for specific Rego policies.

For example you might be looking for a set of policies that validate Kubernetes security best practices as a starting point for your organisations Kubernetes policies. Or you might be looking for a set of Microservice Authorization policies. Right now you have to hope that your google search points you in the right direction.

The PolicyHub CLI aims to make policies searchable. We provide a standard format for policy creators to share their policies. Users of the CLI can search our registry for specific tags or descriptions, hopefully finding the policy they where looking for.

Searching policies

To search our registry, you can use the search command:

> policy-hub search k8s

+---------------------------+---------------------------------+--------------------------------+
|           NAME            |           MAINTAINERS           |             LABELS             |
+---------------------------+---------------------------------+--------------------------------+
| deprek8ion                | https://github.com/swade1987    | k8s, kubernetes, gatekeeper    |
| contrib.k8s_node_selector | https://github.com/tsandall     | kubernetes, k8s, node_selector |
| redhat-cop.rego-policies  | https://github.com/garethahealy | k8s, kubernetes, gatekeeper    |
| konstraint                | https://github.com/garethahealy | k8s, kubernetes, gatekeeper    |
+---------------------------+---------------------------------+--------------------------------+

Downloading policies

To download a policy, use the pull command:

> policy-hub pull konstraint

Make your policies discoverable

Do you have policies that the community could benefit from too? Make them searchable for users of policy-hub by adding metadata for them here (https://github.com/policy-hub/policy-hub-cli/blob/main/metadata/registries.yml) and submitting a PR

Contributing

Join us make policies more searchable!

  • We accept contributions to our registry.
  • Use GitHub Issues to file bugs or propose new features.
  • Create a Pull Request and contribute to the project.

policy-hub-cli's People

Contributors

blokje5 avatar xchapter7x avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.