Skip to content

Instantly share code, notes, and snippets.

@developer-guy
Created June 16, 2020 09:46
Show Gist options
  • Save developer-guy/a7ddbf298125f3eb8a57ffe6285b1515 to your computer and use it in GitHub Desktop.
Save developer-guy/a7ddbf298125f3eb8a57ffe6285b1515 to your computer and use it in GitHub Desktop.
opa_demo_rule
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