{"id":13509061,"url":"https://github.com/policy-hub/policy-hub-cli","last_synced_at":"2025-03-30T13:31:25.045Z","repository":{"id":44599885,"uuid":"301482830","full_name":"policy-hub/policy-hub-cli","owner":"policy-hub","description":"CLI for searching Rego policies","archived":false,"fork":false,"pushed_at":"2022-02-05T18:46:53.000Z","size":104,"stargazers_count":104,"open_issues_count":8,"forks_count":6,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-08-02T02:13:16.844Z","etag":null,"topics":["cloud-native","cncf","hacktoberfest","kubernetes","opa","openpolicyagent","policies","rego"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/policy-hub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-05T17:10:40.000Z","updated_at":"2023-12-03T21:45:38.000Z","dependencies_parsed_at":"2022-09-04T01:41:36.986Z","dependency_job_id":null,"html_url":"https://github.com/policy-hub/policy-hub-cli","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/policy-hub%2Fpolicy-hub-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/policy-hub%2Fpolicy-hub-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/policy-hub%2Fpolicy-hub-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/policy-hub%2Fpolicy-hub-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/policy-hub","download_url":"https://codeload.github.com/policy-hub/policy-hub-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222552364,"owners_count":17002054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud-native","cncf","hacktoberfest","kubernetes","opa","openpolicyagent","policies","rego"],"created_at":"2024-08-01T02:01:02.462Z","updated_at":"2024-11-01T09:30:25.269Z","avatar_url":"https://github.com/policy-hub.png","language":"Go","funding_links":[],"categories":["Go","Other Awesome Lists","Policy Packages","kubernetes"],"sub_categories":["Open Policy Agent (OPA)","Blogs and Articles"],"readme":"# PolicyHub CLI\n\nThis is the home of the PolicyHub CLI, a CLI tool that makes Rego policies searchable.\n\n## Goals\n\nPolicies 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.\n\nFor 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.\n\nThe 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.\n\n## Searching policies\n\nTo search our registry, you can use the `search` command:\n\n```bash\n\u003e policy-hub search k8s\n\n+---------------------------+---------------------------------+--------------------------------+\n|           NAME            |           MAINTAINERS           |             LABELS             |\n+---------------------------+---------------------------------+--------------------------------+\n| deprek8ion                | https://github.com/swade1987    | k8s, kubernetes, gatekeeper    |\n| contrib.k8s_node_selector | https://github.com/tsandall     | kubernetes, k8s, node_selector |\n| redhat-cop.rego-policies  | https://github.com/garethahealy | k8s, kubernetes, gatekeeper    |\n| konstraint                | https://github.com/garethahealy | k8s, kubernetes, gatekeeper    |\n+---------------------------+---------------------------------+--------------------------------+\n```\n\n## Downloading policies\n\nTo download a policy, use the `pull` command:\n\n```bash\n\u003e policy-hub pull konstraint\n```\n\n## Make your policies discoverable\n\nDo you have policies that the community could benefit from too?\nMake them searchable for users of policy-hub by adding metadata for them \nhere (https://github.com/policy-hub/policy-hub-cli/blob/main/metadata/registries.yml) \nand submitting a PR\n\n\n## Contributing\n\nJoin us make policies more searchable!\n\n- We accept contributions to our registry.\n- Use [GitHub Issues](https://github.com/policy-hub/policy-hub-cli/issues) to file bugs or propose new features.\n- Create a [Pull Request](https://github.com/policy-hub/policy-hub-cli/pulls) and contribute to the project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolicy-hub%2Fpolicy-hub-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolicy-hub%2Fpolicy-hub-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolicy-hub%2Fpolicy-hub-cli/lists"}