{"id":50886120,"url":"https://github.com/hops-ops/policy-stack","last_synced_at":"2026-06-15T17:02:42.636Z","repository":{"id":360136394,"uuid":"1241176264","full_name":"hops-ops/policy-stack","owner":"hops-ops","description":"Crossplane PolicyStack — Kyverno engine + Policy Reporter + baseline policy bundle (Pod Security Standards). Cloud-neutral.","archived":false,"fork":false,"pushed_at":"2026-05-25T05:46:34.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-25T07:24:42.026Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go Template","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/hops-ops.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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-17T03:44:16.000Z","updated_at":"2026-05-25T05:45:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hops-ops/policy-stack","commit_stats":null,"previous_names":["hops-ops/policy-stack"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/hops-ops/policy-stack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hops-ops%2Fpolicy-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hops-ops%2Fpolicy-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hops-ops%2Fpolicy-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hops-ops%2Fpolicy-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hops-ops","download_url":"https://codeload.github.com/hops-ops/policy-stack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hops-ops%2Fpolicy-stack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34372130,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"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":"2026-06-15T17:02:41.609Z","updated_at":"2026-06-15T17:02:42.631Z","avatar_url":"https://github.com/hops-ops.png","language":"Go Template","funding_links":[],"categories":[],"sub_categories":[],"readme":"# policy-stack\n\nInstalls **Kyverno** (policy engine) and **Policy Reporter** (dashboard + Prometheus\nmetrics for PolicyReports) on a target Kubernetes cluster via two Helm Releases.\n\nCloud-neutral. Group: `hops.ops.com.ai`.\n\n## What's included\n\n- **Kyverno** — admission webhook + background controller + reports controller +\n  cleanup controller. CRDs: `ClusterPolicy`, `ValidatingPolicy` (CEL, GA in 1.17),\n  `MutatingPolicy`, `GeneratingPolicy`, `CleanupPolicy`, `PolicyException`, etc.\n- **Policy Reporter** — UI + Prometheus exporter + alert routing over the\n  `PolicyReport` CRD that Kyverno populates.\n\n## What's NOT (yet) included\n\nThis first iteration is **engine only**. It installs the substrate. Baseline policy\ncontent ships in subsequent iterations:\n\n- Baseline PSS bundle (CEL `ValidatingPolicy` set)\n- reports-server subchart with externally-managed Postgres\n- Split webhook configurations (`failurePolicy: Fail` for security, `Ignore` for\n  hygiene) — see [tasks/policy-stack-failurepolicy-split]\n- Exemption strategy (label-based vs namespace-list — see\n  [tasks/policy-stack-colima-spike])\n- ObserveStack integration (ServiceMonitors, GrafanaDashboards, PrometheusRule)\n\n## Minimal usage\n\n```yaml\napiVersion: hops.ops.com.ai/v1alpha1\nkind: PolicyStack\nmetadata:\n  name: policy\n  namespace: default\nspec:\n  clusterName: my-cluster\n```\n\n## Standard usage\n\n```yaml\napiVersion: hops.ops.com.ai/v1alpha1\nkind: PolicyStack\nmetadata:\n  name: policy\n  namespace: pat-local\nspec:\n  clusterName: pat-local\n  kyverno:\n    namespace: kyverno\n    values:\n      admissionController:\n        replicas: 1   # 3 in production; colima default is 1\n        # On colima keep failurePolicy: Ignore — Kyverno's own apiserver-wedge\n        # incident report (zwindler, Feb 2026) is the cautionary tale.\n        failurePolicy: Ignore\n  policyReporter:\n    namespace: policy-reporter\n    values:\n      ui:\n        enabled: true\n```\n\n## Local testing\n\n```bash\nmake render:all         # render both examples\nmake validate:all       # render + schema-validate\nmake test               # KCL unit tests\nhops config install --path .   # install on colima\n```\n\nApply a PolicyStack manifest and watch:\n\n```bash\nkubectl get policystacks -A\nkubectl get releases.helm.m.crossplane.io\nkubectl get pods -n kyverno\nkubectl get pods -n policy-reporter\n```\n\n## References\n\n- Spec: [specs/policy-stack] in GitKB\n- Kyverno docs: https://kyverno.io/docs/\n- Policy Reporter: https://github.com/kyverno/policy-reporter\n- Pod Security Standards: https://kubernetes.io/docs/concepts/security/pod-security-standards/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhops-ops%2Fpolicy-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhops-ops%2Fpolicy-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhops-ops%2Fpolicy-stack/lists"}