More Info:

Ensures the private endpoint setting is enabled for kubernetes clusters. Kubernetes private endpoints can be used to route all traffic between the Kubernetes worker and control plane nodes over a private VPC endpoint rather than across the public internet.

Risk Level

High

Address

Security

Compliance Standards

SOC2, NISTCSF, PCIDSS

Triage and Remediation

Remediation

To remediate the misconfiguration “Private Endpoints Should Be Enabled” in GCP using GCP console, you can follow the below steps:

  1. Login to the GCP console and select the project where the misconfiguration exists.
  2. Go to the “VPC network” section from the navigation menu.
  3. Click on “Endpoints” from the left-hand side menu.
  4. Select the service for which you want to enable Private Endpoint.
  5. Click on “Create Endpoint”.
  6. Choose the VPC network and subnet in which you want to create the endpoint.
  7. Select the service you want to connect to and provide the required details.
  8. Click on “Create” to create the Private Endpoint.

Once you have created the Private Endpoint, you need to update the DNS settings for the service to use the Private Endpoint. You can follow the below steps to update the DNS settings:

  1. Go to the “Cloud DNS” section from the navigation menu.
  2. Select the DNS zone for which you want to update the DNS settings.
  3. Click on “Add Record Set”.
  4. Provide the required details like name, type, and IP address.
  5. In the IP address field, provide the IP address of the Private Endpoint you created.
  6. Click on “Create” to update the DNS settings.

By following the above steps, you can remediate the misconfiguration “Private Endpoints Should Be Enabled” in GCP using GCP console.

Additional Reading: