Created
April 15, 2021 05:02
-
-
Save aavarghese/8e7ac0022b0952800e767dcd12538386 to your computer and use it in GitHub Desktop.
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 policy | |
| import data.acl | |
| default allow = false | |
| # METADATA | |
| # scope: rule | |
| # schemas: | |
| # - input: schema["input"] | |
| # - data.acl: schema["acl-schema"] | |
| allow { | |
| access = data.acl["alice"] | |
| access[_] == input.operation | |
| } | |
| allow { | |
| access = data.acl["bob"] | |
| access[_] == input.operation | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment