More Info:

Ensure Cloud CDN backend buckets enable negative caching for better performance.

Risk Level

Medium

Address

Operational Maturity, Reliability, Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the misconfiguration “Cloud CDN Backend Buckets Should Enable Negative Caching” for GCP using GCP Console, you can follow these step-by-step instructions:

  1. Open the Google Cloud Console and go to the Cloud Storage Browser page.

  2. Select the bucket that you want to configure for negative caching.

  3. Click on the “Edit bucket permissions” button.

  4. In the “Add members” field, enter “allUsers” and select the “Storage Object Viewer” role.

  5. Click on the “Add” button to save the changes.

  6. Go to the Cloud CDN page in the GCP Console.

  7. Select the CDN resource that is associated with the backend bucket.

  8. Click on the “Edit” button.

  9. In the “Backend configuration” section, click on the “Advanced” tab.

  10. Check the “Enable negative caching” checkbox.

  11. Set the “Negative caching TTL” value to the desired time in seconds.

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

  13. Verify that the negative caching is enabled by sending a request to the CDN resource and checking the response headers.

By following these steps, you can remediate the misconfiguration “Cloud CDN Backend Buckets Should Enable Negative Caching” for GCP using GCP Console.

Additional Reading: