More Info:

GKE cluster should have Workload Identity enabled

Risk Level

Critical

Address

Security, Reliability, Best Practice

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the misconfiguration “Workload Identity Should Be Enabled” for GCP using GCP console, please follow the below steps:

  1. Open the GCP console and select the project for which you want to enable the Workload Identity.

  2. Go to the “IAM & Admin” section from the left-hand side menu.

  3. Click on “Service Accounts” from the IAM menu.

  4. Select the service account for which you want to enable Workload Identity.

  5. Click on “Edit” from the top menu bar.

  6. Scroll down to the “Identity and API access” section.

  7. Click on the “Enable Workload Identity” checkbox.

  8. Click on “Save” to enable the Workload Identity for the selected service account.

  9. Repeat the above steps for all the service accounts in your GCP project.

Enabling Workload Identity for all the service accounts in your GCP project ensures that your applications running on GCP can securely access other Google Cloud services without the need for managing and storing service account keys.