OPA in CI/CD Pipelines
π Introduction
πΊοΈ Where Policy Enforcement Belongs
π§ Pre-commit Hook with Conftest
# .pre-commit-config.yaml
repos:
- repo: https://github.com/open-policy-agent/conftest
rev: v0.50.0
hooks:
- id: conftest-not-exist
name: conftest
language: golang
entry: conftest test
files: \.(yaml|yml)$
args: ["--policy", "./policy"]ποΈ CI Pipeline: GitHub Actions
π Conftest Policies for Kubernetes Manifests
ποΈ CI Pipeline: Policy Bundle Deployment
π¬ Testing Terraform Plans with Conftest
π Reporting in Pull Requests
π§ Series Wrap-Up
Article
Topic
π References
Last updated