Home / Companies / Harness / Blog / Post Details
Content Deep Dive

Creating Policy-Enforced Pipelines With Open Policy Agent

Blog post from Harness

Post Details
Company
Date Published
Author
No items found.
Word Count
614
Language
English
Hacker News Points
-
Summary

Implementing Open Policy Agent (OPA) with Harness CI/CD pipelines allows organizations to enforce deployment policies, enhancing governance and reducing risk in software delivery processes by restricting specific container images. The blog post demonstrates using OPA to create policy-enforced pipelines within Kubernetes environments, where OPA acts as an admission controller and policies are written in Rego. An example policy is provided that denies Kubernetes deployment of container images starting with "nginx," illustrating how policies can protect specific environments such as QA or production. The integration ensures that deployment pipelines adhere to these policies, with the potential to create more complex policies for validation and testing. The concept of policy as code is emphasized as a continuing trend for better governance in organizational processes and software delivery, with further resources available for deeper exploration of governance in CI/CD contexts.