Ensure AWS EKS cluster endpoint access is publicly disabled

Error: AWS EKS cluster endpoint access is publicly enabled

Bridgecrew Policy ID: BC_AWS_KUBERNETES_2
Checkov Check ID: CKV_AWS_39
Severity: HIGH

AWS EKS cluster endpoint access is publicly enabled

Description

Amazon EKS creates an endpoint for any managed Kubernetes API server to communicate with the cluster. This API server endpoint is public to the internet by default. Access to it should be regulated using AWS IAM and native Kubernetes RBAC.

We recommended that your Kubernetes API server remains private so that all communication between worker nodes and APIs stays within your VPC. If public access is needed, restrict the IP addresses that can access your API server from the internet to reduce the potential attack surface.

Fix - Runtime

Amazon Console

  1. Log in to the AWS Management Console at https://console.aws.amazon.com/.
  2. Open the Amazon EKS console.
  3. Choose the name of the cluster to display your cluster information.
  4. Under Networking, click Update.
  5. For Private access, disable private access for your cluster's Kubernetes API server endpoint. You must enable private access to disable public access.

Did this page help you?