EKS control plane logging insufficient. Affecting Kubernetes (Container) Engine service in AWS


Severity

0.0
medium
0
10
Severity Framework
Snyk CCSS
Rule category
Logging/ Logging

Is your environment affected by this misconfiguration?

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 applications
Frameworks
CIS-ControlsHIPAAISO-27001NIST-800-53PCI-DSSSOC-2
  • Snyk IDSNYK-CC-00221
  • creditSnyk Research Team

Description

Amazon EKS control plane logging is used to detect anomalous configuration activity by your customer. It is used to track configuration changes conducted manually and programmatically, and trace back unapproved changes.

How to fix?

Set the enabled_cluster_log_types attribute in aws_eks_cluster resource to ["api", "audit", "authenticator", "controllerManager", "scheduler"].

Example configuration:


resource "aws_eks_cluster" "allowed" {
name     = "example1"
role_arn = data.aws_iam_role.eksrole.arn
vpc_config {
    subnet_ids = [data.aws_subnet.sub1.id, data.aws_subnet.sub2.id]
}
enabled_cluster_log_types = ["api", "audit", "authenticator", "controllerManager", "scheduler"]
}