More Info:

Ensures Kubernetes clusters are created with limited service account access scopes. Kubernetes service accounts should be limited in scope to the services necessary to operate the clusters.

Risk Level

Medium

Address

Security

Compliance Standards

CISGCP

Triage and Remediation

Remediation

To remediate the misconfiguration “Cluster Should Have Limited Service Account Access” for GCP using GCP console, follow these steps:

  1. Open the Google Kubernetes Engine (GKE) console.
  2. Select the cluster that needs to be remediated.
  3. Click on the “Security” tab.
  4. Scroll down to the “Service Accounts” section.
  5. Click on the “Edit” button.
  6. In the “Service Accounts” section, select the option “Limit service account access to this cluster”.
  7. Select the service account that needs access to the cluster.
  8. Click on the “Save” button to save the changes.

By following these steps, the cluster will have limited service account access and only the selected service account will have access to the cluster.

Additional Reading: