More Info:

Ensure basic authentication is set to disabled on Kubernetes clusters.

Risk Level

High

Address

Security, Reliability

Compliance Standards

CISGKE

Triage and Remediation

Remediation

To remediate the “Basic Authentication Should Be Disabled” misconfiguration in GCP using the GCP console, you can follow these steps:

  1. Open the GCP console and select the project that you want to work on.

  2. Go to the Cloud Run service that you want to remediate.

  3. Click on the “Edit and deploy new revision” button.

  4. Scroll down to the “Container” section and click on the “Show advanced settings” link.

  5. In the “Container” section, locate the “Environment variables” field.

  6. Click on the “Add item” button to add a new environment variable.

  7. In the “Name” field, enter “DISABLE_BASIC_AUTH”.

  8. In the “Value” field, enter “true”.

  9. Click on the “Save” button to save the changes.

  10. Redeploy the service to apply the changes.

Once you have completed these steps, Basic Authentication will be disabled for the Cloud Run service in GCP.

Additional Reading: