Last active
May 12, 2017 15:24
-
-
Save tsandall/7e0754e683aab1913dc24239838d25a2 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 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