Kubernetes clusters must restrict public API access

High Cross-cloud General aks-no-public-access

Applies to

  • Microsoft.ContainerService/managedClusters
  • AWS::EKS::Cluster

What CGPulse checks

A resource passes this rule when apiServerAccessProfile.enablePrivateCluster must equal true OR endpointPrivateAccess must equal true. Anything else is reported as a finding with the evaluated property value attached as evidence.

How to fix it

Enable private API server access to restrict cluster management to the private network. See: https://learn.microsoft.com/en-us/azure/aks/private-clusters

Compliance frameworks

Is your environment compliant with this rule?

CGPulse checks it — and 621 others — against your Azure and AWS accounts with read-only access.

Run a free scan

Related Cross-cloud rules

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.