Raw policies
From v1.9.0
onwards, Kubewarden supports the ability to write and execute policies
outside a Kubernetes cluster, as a generic policy evaluation engine.
The Policy Server exposes the /validate_raw
endpoint that can be used to validate
arbitrary JSON documents against a Kubewarden policy.
For this guide, we will use the following raw policies:
note
Please ensure that the policy author has marked the policy as policyType: raw
in the metadata.
You can inspect the metadata by using kwctl
kwctl inpect ghcr.io/kubewarden/tests/raw-mutation-policy:v0.1.0