> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/gcp-kubernetes-engine-cluster-workload-identity-is-disabled.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# GCP Kubernetes Engine cluster workload identity is disabled

### Synopsis

| Field               | Value                                                       |
| ------------------- | ----------------------------------------------------------- |
| Rule Type           | Detection                                                   |
| Finding Type        | GCP Kubernetes Engine cluster workload identity is disabled |
| Finding ID          | 60000512                                                    |
| Generates a Finding | This detection rule also generates a finding                |
| Severity            | Medium                                                      |
| Category            | CONFIGURATION                                               |
| Cloud Providers     | GCP                                                         |
| Platform Module     | CSPM                                                        |
| Asset Types         | GOOGLE\_KUBERNETES\_ENGINE\_CONTAINER\_CLUSTER              |

### Description

GCP Kubernetes Engine clusters lacking workload identity exhibit a significant security misconfiguration. Disabling this feature necessitates manual authentication methods for Kubernetes workloads, increasing the attack surface.

Workload Identity provides a secure mechanism for Kubernetes pods to access Google Cloud services. Without it, service accounts rely on less secure methods like directly managing keys, increasing the risk of unauthorized access or key compromise if these keys are leaked or stolen. This exposes the cluster to potential data breaches and privilege escalation attacks.

The impact of this misconfiguration is elevated risk of unauthorized access to GCP services. Compromised service account keys can grant attackers extensive control over resources. Implementing Workload Identity aligns with the principle of least privilege, ensuring only authorized workloads access necessary services.

To mitigate this, enable Workload Identity on all GCP Kubernetes Engine clusters. Regularly rotate service account keys and enforce strong access control policies. Employ monitoring to detect suspicious activity related to service account usage.

### Remediation

1. Log in to GCP console
2. Navigate to service 'Kubernetes Engine'(Left Panel)
3. Select the reported cluster from the available list
4. Under section 'Security', click on edit icon for 'Workload Identity'
5. Click on the checkbox 'Enable Workload Identity'
6. Ensure that the Workload Identity Namespace is set to the namespace of the GCP

   project containing the cluster, e.g: $PROJECT\_ID.svc.id.goog
7. Click on 'SAVE CHANGES'
8. After enabling, go to tab 'NODES'
9. To investigate each node pool, Click on 'Edit', In section 'Security', select the 'Enable GKE Metadata Server' checkbox
10. Click on 'SAVE'


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/gcp-kubernetes-engine-cluster-workload-identity-is-disabled.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
