[policy-charter] PEP-PDP Group
Omri Gazitt
omri at aserto.com
Tue Jun 13 17:54:25 UTC 2023
I agree with David that looking at existing systems is a good place to
start. If the idea is that PDPs can add a "standard" API that PEPs can
call, then it would be good if the API supports the existing message
exchange patterns (and doesn't mandate things that aren't supported).
Here are three examples, to get us started:
- OPA is interesting in the sense that its primary REST API is very
document-oriented - you have a set of rules that are defined in a
JSON-style hierarchy and you issue a GET or POST on that resource in the
hierarchy to evaluate the rule that is rooted there. This seems like a
special case. OPA does have a generic query
<https://www.openpolicyagent.org/docs/latest/rest-api/#execute-an-ad-hoc-query>
API, which allows you to pass input and evaluate a rego query based on the
loaded policy document and the input.
- Auth0 FGA (one of the zanzibar implementations) has a check
<https://www.openpolicyagent.org/docs/latest/rest-api/#execute-an-ad-hoc-query>
API
that takes a JSON payload containing a user key, relation name, and object
key, and returns an allowed decision (true or false). Most zanzibar
implementations seem to do something similar - e.g. SpiceDB has a check
<https://www.postman.com/authzed/workspace/spicedb/documentation/21043612-9786e5f3-2014-4b31-86c1-39335236c0e2?entity=request-c58c40ff-9fc7-4c3e-9cca-f017160ba5b8>
API that takes a resource, permission, and subject.
- Topaz (Aserto's OSS authorizer) has a query
<https://aserto.readme.io/reference/authorizerquery-1> API that takes an
identity and policy (rule/decisions to evaluate), and optionally a resource
context and additional input, and returns what OPA would return. It also
has a simpler is <https://aserto.readme.io/reference/authorizeris-1> API
that evaluates a policy (rule/decisions) with an identity and resource
context.
On Tue, Jun 13, 2023 at 1:54 AM Roland Baum via policy-charter <
policy-charter at lists.openid.net> wrote:
> I'm in as well :-D
>
>
>
> Roland Baum
> umbrella.associates GmbH
>
>
> --
> policy-charter mailing list
> policy-charter at lists.openid.net
> https://lists.openid.net/mailman/listinfo/policy-charter
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openid.net/pipermail/policy-charter/attachments/20230613/02474bee/attachment-0001.html>
More information about the policy-charter
mailing list