Skip to content

Instantly share code, notes, and snippets.

@dipeshhkc
Created June 23, 2021 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dipeshhkc/75f9e838c2d0003a76deefe2ec4e7bf5 to your computer and use it in GitHub Desktop.
Save dipeshhkc/75f9e838c2d0003a76deefe2ec4e7bf5 to your computer and use it in GitHub Desktop.
[request_definition]
r = sub, obj, act
[policy_definition]
p = sub, obj, act
[role_definition]
g = _, _
g2 = _, _
[policy_effect]
e = some(where (p.eft == allow))
[matchers]
m = g(r.sub, p.sub) && g2(r.obj, p.obj) && r.act == p.act
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment