Skip to content

Instantly share code, notes, and snippets.

@tsandall
Last active May 12, 2017 15:25
Show Gist options
  • Select an option

  • Save tsandall/274841a2b194dbecf512653d9929eb42 to your computer and use it in GitHub Desktop.

Select an option

Save tsandall/274841a2b194dbecf512653d9929eb42 to your computer and use it in GitHub Desktop.
package sudo.authz
default allow = false
# Allow sudo access to any user that has the "admin" role.
allow {
data.roles["admin"][_] = input.user
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment