Skip to content

Instantly share code, notes, and snippets.

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