Skip to content

Instantly share code, notes, and snippets.

@dipeshhkc
Created June 23, 2021 08:52
Show Gist options
  • Save dipeshhkc/c0378b9251b66493c21b80e8776a1dee to your computer and use it in GitHub Desktop.
Save dipeshhkc/c0378b9251b66493c21b80e8776a1dee to your computer and use it in GitHub Desktop.
[request_definition]
r = sub, dom, obj, act
[policy_definition]
p = sub, dom, obj, act
[role_definition]
g = _, _, _
[policy_effect]
e = some(where (p.eft == allow))
[matchers]
m = g(r.sub, p.sub, r.dom) && r.dom == p.dom && 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