Last active
April 7, 2020 13:40
-
-
Save liskl/96c947e42bc4c1a9028b36f6f3b2a187 to your computer and use it in GitHub Desktop.
disable containers running as root when deployed from a deployment.
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
package main | |
deny[msg] { | |
input.kind = "Deployment" | |
not input.spec.template.spec.securityContext.runAsNonRoot = true | |
msg = "Containers must not run as root" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment