{"id":31033129,"url":"https://github.com/env0/policy-catalog","last_synced_at":"2026-02-13T03:47:11.733Z","repository":{"id":311442657,"uuid":"1043627178","full_name":"env0/policy-catalog","owner":"env0","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-29T07:43:06.000Z","size":122,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-16T23:27:36.359Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Open Policy Agent","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/env0.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-24T09:18:01.000Z","updated_at":"2025-09-29T07:43:10.000Z","dependencies_parsed_at":"2025-09-21T14:18:14.572Z","dependency_job_id":"25ee9d1c-909a-4991-934c-e32e0a9d73bb","html_url":"https://github.com/env0/policy-catalog","commit_stats":null,"previous_names":["env0/policy-catalog"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/env0/policy-catalog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/env0%2Fpolicy-catalog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/env0%2Fpolicy-catalog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/env0%2Fpolicy-catalog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/env0%2Fpolicy-catalog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/env0","download_url":"https://codeload.github.com/env0/policy-catalog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/env0%2Fpolicy-catalog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29395295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T00:53:09.511Z","status":"online","status_checked_at":"2026-02-13T02:00:10.076Z","response_time":78,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-09-14T01:34:40.385Z","updated_at":"2026-02-13T03:47:11.728Z","avatar_url":"https://github.com/env0.png","language":"Open Policy Agent","funding_links":[],"categories":[],"sub_categories":[],"readme":"# env0 Policy Catalog\n\nThis repository contains a catalog of reusable **OPA/Rego policies** for use with env0.  \nEach policy is defined in its own folder and includes the policy logic, metadata, and configuration schema.  \n\nThe goal is to provide real-world, ready-to-use examples for cost, security, compliance, and other categories, while keeping the structure consistent and easy to extend.\n\n---\n\n## Repository Structure\n\nEach folder in this repository represents a single policy template.  \nA policy folder must include the following files:\n\n### 1. `policy.rego`\nThe OPA/Rego policy implementation.  \nThis file contains the actual rules that enforce the desired behavior.\n\n### 2. `metadata.yml`\nA YAML file that contains metadata and optional configuration for the policy.\n\n**Fields:**\n- **name**: Friendly name of the policy template.\n- **description**: Explanation of what the policy does.\n- **explanation**: User-friendly benefit description explaining the value proposition and what users gain by using this policy.\n- **categories** *(optional)*: Category of the policy. Supported categories: `Security`, `Networking`, `IAM`, `Compliance`, `Cost`, `Performance`.\n- **tags** *(optional)*: Cloud resources or concepts targeted by the policy.\n- **cloudProvider** *(optional)*: Relevant cloud provider (`aws`, `gcp`, `azure`, `oci`). Leave blank for multi-cloud.\n- **configurationSchema** *(optional)*: Schema describing configuration arguments for the policy.\n\n**Example:**\n```yaml\nname: \"Deny Public S3 Buckets\"\ndescription: \"Ensures that S3 buckets are not publicly accessible.\"\nexplanation: \"Prevent accidental data leaks by blocking public access to storage buckets. Keeps your sensitive data private by default.\"\ncategories:\n  - \"security\"\ntags:\n  - \"aws\"\n  - \"s3\"\n  - \"public-access\"\ncloudProvider: \"aws\"\n```\n\n### 3. `configurationSchema.json`\nA JSON Schema that describes optional or required parameters to customize the policy.  \nThis allows policies to be flexible and accept input arguments.\n\n**Schema Fields:**\n- **$schema**: JSON Schema version.\n- **title**: Human-readable name of the schema.\n- **type**: Root object type (usually `object`).\n- **properties**: Key-value map of supported parameters.\n- **additionalProperties**: Defines whether extra fields are allowed (`true`/`false`).\n\n**Example:**\n```json\n{\n  \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n  \"title\": \"S3 Bucket Public Access Configuration\",\n  \"type\": \"object\",\n  \"properties\": {\n    \"allowExceptions\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"string\"\n      },\n      \"description\": \"List of bucket names exempted from the policy.\"\n    }\n  },\n  \"additionalProperties\": false\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenv0%2Fpolicy-catalog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenv0%2Fpolicy-catalog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenv0%2Fpolicy-catalog/lists"}