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 applicationsAny secrets stored in environment variables could be exposed if the environment is logged or otherwise exposed by an application. Providing access to secrets via volume mounts is preferred.
Ensure spec.containers.env.valueFrom attribute of pod doesn't contain secretKeyRef.
Example configuration:
apiVersion: v1
kind: Pod
metadata:
name: valud-pod
spec:
containers:
- name: mysql
image: mysql:8.0
volumeMounts:
- name: mysql-pass
mountPath: "/etc//mysql/credentials"
volumes:
- name: mysql-pass
secret:
secretName: basic-auth
Set the spec.container.volume.secret attribute in kubernetes_pod.
Example configuration:
resource "kubernetes_pod" "allowed1" {
metadata {
name = "example"
}
spec {
container {
image = "mysql:8.0"
name = "mysql"
volume_mount {
mount_path = "/etc//mysql/credentials"
name = "mysql-pass"
}
}
volume {
name = "mysql-pass"
secret {
secret_name = "basic-auth"
}
}
}
}