Skip to content

Instantly share code, notes, and snippets.

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

  • Save tsandall/7e0754e683aab1913dc24239838d25a2 to your computer and use it in GitHub Desktop.

Select an option

Save tsandall/7e0754e683aab1913dc24239838d25a2 to your computer and use it in GitHub Desktop.
package puppet.authz
default allow = false
allow { not deny }
deny {
resource = catalog.resources[resource_index]
resource.type = "File"
startswith(resource.title, "/etc/infra")
resource_author[resource_index] = email
not infra_team[email]
}
deny {
resource = catalog.resources[resource_index]
resource.type = "File"
startswith(resource.title, "/etc/infra")
resource_author[resource_index] = email
not infra_team[email]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment