Created
May 12, 2017 15:23
-
-
Save tsandall/4c8c123c9a50d51d0d0137d0e8d24dca 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 ssh.authz | |
| default allow = false | |
| # Allow access to any user that has the "admin" role. | |
| allow { | |
| data.roles["admin"][_] = input.user | |
| } | |
| # Allow access to any user who contributed to the code running on the host. | |
| allow { | |
| data.hosts[input.host_identity.host_id].contributors[_] = input.user | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment