policy-as-code

Open repos and models their makers tagged policy-as-code, most starred first. The same for everyone.

HomelabRepo

octelium

A next-gen FOSS self-hosted unified zero trust secure access platform that can operate as a remote access VPN, a ZTNA platform, API/AI/MCP gateway, a PaaS, an ngrok-alternative and a homelab infrastructure.

  • 4.2k
  • Go
  • AGPL-3.0
  • 6 h ago
octeliumTake it
Security and privacyRepo

cloudformation-guard

Guard offers a policy-as-code domain-specific language (DSL) to write rules and validate JSON- and YAML-formatted data such as CloudFormation Templates, K8s configurations, and Terraform JSON plans/configurations against those rules. Take this survey to provide feedback about cfn-guard: https://amazonmr.au1.qualtrics.com/jfe/form/SV_bpyzpfoYGGuuUl0

  • 1.4k
  • Rust
  • Apache-2.0
  • 2 d ago
AI agentsRepo

agent-safe-pipeline

Open-source gateway that puts authorization in front of every action your AI agents, workflows and pipelines take, before it commits: payments, trades, price changes, deployments and API calls run once on a single-use grant, wait for a person, or are refused, as Decionis decides, with chained evidence. Homebrew, Linux, Docker, Helm.

  • 672
  • TypeScript
  • Apache-2.0
  • 2 d ago
decionisTake it
AI agentsRepo

emisar

Let AI agents investigate and operate infrastructure through declared actions, bounded by policy and host-side checks. Approvals when required, with an audit trail.

  • 472
  • Elixir
  • 1 d ago
AndrewDrygaTake it
Security and privacyRepo

govern

Govern: one Decionis verdict before a workflow step runs — a deploy, a migration, an infrastructure change, an agent's action — with a signed Decision Dossier of it. GitHub Actions, GitLab CI, Jenkins; shadow or enforce; no local policy engine.

  • 246
  • Apache-2.0
  • 2 mo ago
decionisTake it
GitHubRepo

cookstyle

A linting tool that helps you to write better Chef Infra cookbooks and InSpec profiles by detecting and automatically correcting style, syntax, and logic mistakes in your code.

  • 113
  • Ruby
  • Apache-2.0
  • 5 d ago
chefTake it
Security and privacyRepo

rego_policy_libraries

An open library of executable compliance policy in OPA Rego v1: CIS Benchmarks, DISA STIGs, NIST, ISO 27001, SOC 2, PCI DSS, HIPAA, GDPR, EU AI Act, NERC-CIP and APAC regulators, each with a uniform compliance_report entrypoint that fails closed. Apache 2.0. Current size: docs/HOW_BIG.md

  • 23
  • Open Policy Agent
  • Apache-2.0
  • 1 d ago
ynotbhatcTake it
GitHubRepo

ergo

Define what compliance means in plain data, and get a report of every check that passed or failed. A lightweight library for OPA.

  • 22
  • Rust
  • Apache-2.0
  • 22 h ago
kosli-devTake it
AI agentsRepo

rv

rv blocks destructive shell commands from autonomous agents — 95 rule packs, on-device Laya-model judge, secrets & MCP governance, tamper-evident audit. Fail-closed. Never asks the agent.

  • 8
  • Swift
  • Apache-2.0
  • 1 d ago
AI agentsRepo

agentbreeder

Open-source preview: deploy existing agent containers to local Docker behind a deploy-time identity gate (Entra, Keycloak, Okta, AWS), with Cedar/OPA policy, second-person approval, a kill switch and a hash-chained audit log.

  • 4
  • Python
  • Apache-2.0
  • 2 d ago
agentbreederTake it
GitHubRepo

policybind

PolicyBind is an AI Policy-as-Code platform that enables organizations to govern AI usage through a unified model registry, real-time token-based access control, and automated compliance reporting for frameworks like the EU AI Act and NIST AI RMF.

  • 4
  • Python
  • MIT
  • 10 mo ago
clay-goodTake it
Search GitHub and Hugging Face for policy-as-code

Get , open it once and sign in. Then come back here and press the button again.