---
title: "Kyverno: Kubernetes-native policy engine"
description: "Kyverno (May 2019) by Nirmata: Kubernetes-native policy engine based on YAML (not Rego like OPA). Validation, mutation, generation, image verification. Low-barrier alternative to OPA Gatekeeper."
url: "https://www.noze.it/en/insights/kyverno-policy/"
lang: "en"
alternate: "https://www.noze.it/insights/kyverno-policy/"
published: "2019-11-10"
author: "noze S.r.l."
keywords: "Open Source, Cybersecurity, Kyverno, Nirmata, Kubernetes, Policy, CNCF, Security"
---

# Kyverno: Kubernetes-native policy engine

Kyverno (May 2019) by Nirmata: Kubernetes-native policy engine based on YAML (not Rego like OPA). Validation, mutation, generation, image verification. Low-barrier alternative to OPA Gatekeeper.

10 November 2019

## Policy without learning Rego

**OPA/Gatekeeper** requires mastery of **Rego**, a declarative Datalog-inspired language with significant learning curve. Many Kubernetes teams want **policy as YAML**, with native K8s semantics rather than a language to learn from scratch.

## The release

**Kyverno** is published by **Nirmata** (Sanjay Ramanathan, Jim Bugwadia) in **May 2019**. **Apache 2.0** licence. Written in **Go**.

## Philosophy

- Policies as **YAML CRDs**
- **K8s semantics** — `match`, `resources`, `kind`
- Familiar to those who know RBAC, NetworkPolicy, etc.
- **Validating, Mutating, Generating** admission controller + policy reporter

```
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata: { name: require-labels }
spec:
  validationFailureAction: Enforce
  rules:
    - name: check-team-label
      match:
        resources:
          kinds: [Pod, Deployment]
      validate:
        message: "label 'team' is required"
        pattern:
          metadata:
            labels:
              team: "?*"
```

## Features

- **Validation** — block or warn on non-compliant resources
- **Mutation** — automatically adds/modifies fields (e.g. sidecar injection, default resource limits)
- **Generation** — creates derived resources (NetworkPolicy for every Namespace)
- **Image verification** — **Cosign/Sigstore** integration for container signature verification
- **Cleanup policies** — expired resource deletion
- **Policy Reports** — cluster compliance inventory
- **Policy exceptions** — explicit exceptions for legacy resources
- **ValidatingAdmissionPolicy** integration (K8s 1.30+ native CEL)

## Kyverno vs OPA Gatekeeper

|                     | Kyverno         | OPA Gatekeeper             |
| ------------------- | --------------- | -------------------------- |
| Language            | K8s-native YAML | Rego                       |
| Learning curve      | Low             | High                       |
| Generation/Mutation | Yes             | No (validate only)         |
| Non-K8s use case    | No              | Yes (Terraform, API, etc.) |
| Performance         | Excellent       | Excellent                  |

## Curated policy packs

- **Kyverno Policies** — official repo with 100+ ready policies (PodSecurity, best practices, compliance)
- **PSP replacement** — policies replicating deprecated Pod Security Policy (K8s 1.25+)
- **PCI DSS, CIS, NSA/CISA** — compliance baseline

## In the Italian context

Kyverno is widely adopted in:

- **Banks** for compliance baseline policies (resources, images, secrets)
- **Digital PA** — constraints on namespaces, mandatory labels
- **MSPs** — default policies on client clusters
- **Healthcare** — sensitive data regulation compliance
- **Platform engineering teams** as Gatekeeper alternative

Often combined with **Cosign/Sigstore** for container image signature verification in regulated environments.

Update — 2026

Kyverno is donated to the **CNCF** as **Sandbox** (10 November 2020), promoted to **Incubating** on 13 July 2022 and to **Graduated** on 16 March 2026.

---

_References: Kyverno (May 2019). Nirmata (Sanjay Ramanathan, Jim Bugwadia). Apache 2.0 licence. Written in Go. K8s-native YAML policies. Validation, Mutation, Generation. Cosign integration._
