kubewarden / policy-evaluator

Crate used by Kubewarden that is able to evaluate policies with a given input, request to evaluate and settings.
Apache License 2.0
15 stars 9 forks source link

Figure out how OPA/OPA Gatekeeper returns results for policies #20

Closed ereslibre closed 3 years ago

ereslibre commented 3 years ago

Given an OPA-based policy, figure out how it produces the policy evaluation result, and how they will be provided by it to burrego, and by extension, the policy-evaluator.

Acceptance criteria

ereslibre commented 3 years ago

I'm documenting everything here: https://gist.github.com/ereslibre/873df64decf209c6dc90376327d1e07d

ereslibre commented 3 years ago

Considered done

ereslibre commented 3 years ago

Copied the gist contents to the policy-evaluator Wiki, that I believe is a better place for this information: https://github.com/kubewarden/policy-evaluator/wiki/OPA-Gatekeeper