Skip to content

Instantly share code, notes, and snippets.

@aavarghese
Created April 15, 2021 05:02
Show Gist options
  • Select an option

  • Save aavarghese/8e7ac0022b0952800e767dcd12538386 to your computer and use it in GitHub Desktop.

Select an option

Save aavarghese/8e7ac0022b0952800e767dcd12538386 to your computer and use it in GitHub Desktop.
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