An open API service indexing awesome lists of open source software.

https://github.com/anderseknert/opa-kasten-demo

OPA and Kasten Demo repository
https://github.com/anderseknert/opa-kasten-demo

Last synced: 2 months ago
JSON representation

OPA and Kasten Demo repository

Awesome Lists containing this project

README

          

# POC - OPA policy enforcement for Kasten

## Policies

In order to test policy against Kasten manifests without a kube cluster running,
the [kube-review](https://github.com/anderseknert/kube-review) tool may be used
to transform Kubernetes manifests into AdmissionReview objects, just like they would
be sent from the Kubernetes API server for admission control:

```shell
kube-review create manifests/policy.yaml \
| opa eval --format pretty --stdin-input --data policy/policy.rego data.policy.deny
```