CCSS (Common Configuration Scoring System) is a set of measures used to determine the severity of the rule.
Each rule is associated with a high-level category. For example IAM, Container, Monitoring, Logging, Network, etc.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUID of the container processes could clash with host's UIDs and lead to unintentional authorization bypass.
Set securityContext.runAsUser
value to greater or equal than 10'000. SecurityContext can be set on both pod
and container
level. If both are set, then the container level takes precedence.
Set security_context.run_as_user
value to greater or equal than 10000
.
resource "kubernetes_pod" "allowed" {
metadata {
name = "terraform-example1"
}
spec {
container {
image = "nginx:1.7.9"
name = "example"
env {
name = "environment"
value = "test"
}
port {
container_port = 8080
}
security_context {
run_as_user = 20000
}
}
dns_config {
nameservers = ["1.1.1.1", "8.8.8.8", "9.9.9.9"]
searches = ["example.com"]
option {
name = "ndots"
value = 1
}
option {
name = "use-vc"
}
}
dns_policy = "None"
}
}