Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Add json-rule-engine support as an alternative to CASL #152

Open
JaneJeon opened this issue Jan 27, 2021 · 4 comments
Open

Add json-rule-engine support as an alternative to CASL #152

JaneJeon opened this issue Jan 27, 2021 · 4 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@JaneJeon
Copy link
Owner

For this we might have to expand the definition of "authorization library", but I know for a fact that there exist "rule engines" that can effectively be used for the same purpose, with the additional benefit of being able to see/build/debug the rules visually in the UI, without having to write test cases which are a pain in the ass.

For starters, I know for a fact that https://github.com/cachecontrol/json-rules-engine can be used to do "if this then that", with the only caveat being that you need to configure "then that" part to tell the objection-authorize plugin to say "DON'T ALLOW THIS", but this is where the pluggable interface comes in!

Plus, it has a nice UI you can use: https://github.com/vinzdeveloper/json-rule-editor

@JaneJeon
Copy link
Owner Author

JaneJeon commented Jan 27, 2021

Another mature option is https://www.drools.org, which, given that it's supported by RedHat, can't be any more solid!

e: nvm, it's only for Java. Fuck.

@JaneJeon
Copy link
Owner Author

@sssss465 you can take this on, should be simple enough?

@sssss465
Copy link

I'll look at it if I have time 😉

@JaneJeon JaneJeon added good first issue Good for newcomers help wanted Extra attention is needed labels Mar 24, 2021
@JaneJeon
Copy link
Owner Author

@sssss465 cough

@JaneJeon JaneJeon changed the title Support authorization libraries that have UI support Add json-rule-engine support as an alternative to CASL May 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants