kubewarden / kwctl

Go-to CLI tool for Kubewarden users
https://kubewarden.io
Apache License 2.0
74 stars 16 forks source link

Run Rego based policies doing context-aware operations #609

Closed flavio closed 1 year ago

flavio commented 1 year ago

We are going to expand the evaluation capabilities of Rego-based policies to have access to context aware information. The same settings and behaviours appied to waPC policies must apply to them.

Currently the user can run a context aware policy against a running k8s cluster and record the interactions performed inside of a text file. Later he can replay these interactions; this removes the need to have a running k8s cluster and makes the unit tests more predictable.

We have to ensure Rego-based policies can benefit from the record/replay feature offered to context aware policies.

flavio commented 1 year ago

Done