Remediation
From Google Cloud Console
- Go to the Cloud SQL Instances page in the Google Cloud Console by visiting https://console.cloud.google.com/sql/instances.
- Click the instance name to open its
Instance detailspage. - Under the
Configurationsection clickEdit configurations. - Under
Configuration optionsexpand theConnectivitysection. - Click the
deleteicon for the authorized network0.0.0.0/0. - Click
Saveto update the instance.
From Google Cloud CLI
Update the authorized network list by removing any public addresses.
gcloud sql instances patch {{instance-name}} \
--authorized-networks={{ip-addr1}},{{ip-addr2}}