Skip to content

Instantly share code, notes, and snippets.

@koungkub
Created August 7, 2019 07:49
Show Gist options
  • Save koungkub/c4b4f9780685d59439e47c07d881c239 to your computer and use it in GitHub Desktop.
Save koungkub/c4b4f9780685d59439e47c07d881c239 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) && keyMatch(r.obj, p.obj) && (r.act == p.act || p.act == "*")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment