-
Notifications
You must be signed in to change notification settings - Fork 21
Description
Hi! I am the maintainer of https://github.com/99designs/gqlgen, and I would like to implement a biscuit plugin for GraphQL Authorization for gqlgen (in Go), somewhat similar to https://github.com/apollographql/router-biscuit-plugin
One thing I'm struggling with is that although there is an RBAC recipe, there's not an ABAC recipe for biscuit. Are you aware of someone who has done something similar?
Also, biscuit specifically uses datalog, and I'm already using GraphQL, and they are both Graph query languages.
Datalog describes recursive conjunctive queries on hypergraphs (relational model) without or with limited negation, and thus return a set or bag of hypergraph edges.
GraphQL queries describe Tree unfoldings of graphs, and thus return trees.
I was wondering if there was a way I could translate between datalog and GraphQL (or vice versa) for biscuit for simple auth evaluation.
For instance, DGraph allows Graph-Based Access Control using @auth directives, and I'd like to do something similar. Any thoughts?