Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examine other Rules Expression Language before building our own for Submission Requirement #22

Closed
wyc opened this issue Jun 18, 2020 · 5 comments
Assignees

Comments

@wyc
Copy link
Contributor

wyc commented Jun 18, 2020

Breaking requirements for a rules expression language, aka why we have our own (@csuwildcat):

  • Picking between a set: "one of these two", "three of these five"
  • Can reference. Looked at JSONLogic, etc. assume what they are selecting over is inside an object, not supporting a reference to an input group such as "ProofOfAddress"

Design criteria:

  • Use cases using real JWTs/JSON-LDs/etc. must be reasonable
  • Usability and understandability is a goal of Presentation Exchange, so humans should be able to make sense of these requirements

(@OR13, @wyc) what are rules expression languages and off-the-shelf tooling relevant to our criteria?

  • JSON Logic
  • MongoDB Querying
@wyc wyc self-assigned this Jun 18, 2020
@wyc wyc changed the title Explain why MongoDB querying hasn't been a good fit for Submission Requirement Explain why MongoDB querying, JSONLogic, etc. hasn't been a good fit for Submission Requirement Jul 9, 2020
@wyc wyc changed the title Explain why MongoDB querying, JSONLogic, etc. hasn't been a good fit for Submission Requirement Examine other Rules Engines before building our own for Submission Requirement Jul 9, 2020
@wyc wyc changed the title Examine other Rules Engines before building our own for Submission Requirement Examine other Rules Expression Language before building our own for Submission Requirement Jul 9, 2020
@OR13
Copy link
Contributor

OR13 commented Jul 9, 2020

@OR13
Copy link
Contributor

OR13 commented Jul 9, 2020

https://www.openpolicyagent.org/docs/latest/#expressions-logical-and

^ we have used this before... and its part of CNCF.... it has built in support for JWTs....

https://www.openpolicyagent.org/docs/latest/http-api-authorization/#8-optional-use-json-web-tokens-to-communicate-policy-data

Roadmap for JSON Schema support:

open-policy-agent/opa#1449

Downside is it relies on a DSL "Rego"... upside is that it has lots of other supporters... who don't care about VCs... and its not a new thing...

@OR13
Copy link
Contributor

OR13 commented Jul 9, 2020

Example, from Dapr explaining why OPA is a thing:
dapr/dapr#1617

@OR13
Copy link
Contributor

OR13 commented Jul 9, 2020

@csuwildcat
Copy link
Member

Resolved, with prejudice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants