Created
June 16, 2020 09:46
-
-
Save developer-guy/a7ddbf298125f3eb8a57ffe6285b1515 to your computer and use it in GitHub Desktop.
opa_demo_rule
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package myapi.policy | |
import data.myapi.acl | |
import input | |
default allow = false | |
allow { | |
access = acl[input.user] | |
access[_] == input.access | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment