More Info:

Ensures pod security policy is enabled for all Kubernetes clusters. Kubernetes pod security policy is a resource that controls security sensitive aspects of the pod configuration.

Risk Level

Medium

Address

Security

Compliance Standards

NISTCSF

Triage and Remediation

Remediation

To remediate the Pod Security Policy misconfiguration in GCP using the GCP console, follow these steps:

  1. Open the Google Kubernetes Engine (GKE) console.

  2. Select the GKE cluster for which you want to enable Pod Security Policy.

  3. Click on the “Edit” button.

  4. Under the “Security” section, click on “Enable Pod Security Policy”.

  5. Click on the “Save” button to apply the changes.

  6. Once the changes are applied, Pod Security Policy will be enabled for the selected GKE cluster.

Note: Enabling Pod Security Policy may cause some of your existing workloads to fail if they do not meet the policy requirements. Therefore, it is recommended to test the policy with a small set of workloads before enabling it for all workloads in the cluster.

Additional Reading: