---
type: "Glossary term"
title: "Policy-as-code"
description: "Decoupling policy decisions from enforcement points across services."
tags: [glossary]
generated: { by: human:crpage, at: 2026-07-09T09:44:00Z }
aliases: "policy-as-code; policy as code"
status: stable
---

# Definition
Expressing authorisation/governance rules as code and **decoupling the decision from the enforcement point** across services, gateways, CI/CD and Kubernetes — the [OPA](../standards/opa.md) model.

# Used in this bundle
Appears in: [opa](../standards/opa.md), [policy-enforcement](../stack/policy-enforcement.md).

# Related terms
[api gateway](api-gateway.md).
