Created
March 19, 2021 18:16
-
-
Save jmassardo/5963e534e914f8a46480b826834f11d5 to your computer and use it in GitHub Desktop.
This file contains 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
enforce[decision] { | |
not excludedNamespaces[input.request.namespace] | |
data.library.v1.kubernetes.admission.workload.v1.block_privileged_mode[message] | |
decision := { | |
"allowed": false, | |
"message": message | |
} | |
} | |
enforce[decision] { | |
data.library.v1.kubernetes.admission.audit.v1.require_auditsink[message] | |
decision := { | |
"allowed": false, | |
"message": message | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment