More Info:

Ensure that Cloud SQL database instances do not have public IPs.

Risk Level

High

Address

Security

Compliance Standards

CISGCP, CBP, GDPR

Triage and Remediation

Remediation

Here are the step-by-step instructions to remediate the “Database Instances Should Not Have Public IPs” misconfiguration in GCP using the GCP console:

  1. Open the GCP Console and go to the Cloud SQL Instances page.

  2. Select the instance for which you want to remove the public IP.

  3. Click the Edit button at the top of the page.

  4. In the Connectivity section, click on the “Public IP” dropdown and select “None”.

  5. Click the Save button to apply the changes.

  6. After removing the public IP, make sure to update your application or services to use the private IP address of the instance for database connectivity.

  7. Verify that the public IP has been removed by checking the instance details page. The “Public IP” field should show as “None”.

By following these steps, you have successfully remediated the “Database Instances Should Not Have Public IPs” misconfiguration in GCP.