Ensure that deletion protection is enabled on all Google Cloud Platform (GCP) Cloud SQL database instances. Deletion protection is a safety mechanism that prevents accidental or malicious deletion of critical database instances. When enabled, the deletion protection setting requires users to explicitly disable the protection before they can delete an instance, adding an additional safeguard to the deletion workflow. This setting does not impact database performance, availability, or operational overhead—it only affects delete operations.
Cloud SQL instances without deletion protection can be permanently deleted with a single API call or console action, allowing compromised credentials, operational errors, or malicious insiders to cause catastrophic data loss. By requiring deliberate action to disable deletion protection before an instance can be deleted, organizations mitigate risks associated with accidental data deletion and enhance the overall resilience of their data storage platform. This control is particularly important for production workloads where data loss could result in significant business disruption, regulatory compliance violations, and reputational damage. Note: The GCP Console calls this "Deletion prevention" while the CLI uses "Deletion protection" — they refer to the same feature.
Audit
To determine if deletion protection is enabled on all Cloud SQL database instances, perform the following operations:
Remediation / Resolution
To enable deletion protection on Cloud SQL database instances, perform the following operations:
References
- Google Cloud Platform (GCP) Documentation
- Delete instances | Cloud SQL for MySQL | Google Cloud Documentation
- About instance settings | Cloud SQL for MySQL | Google Cloud Documentation
- GCP Command Line Interface (CLI) Documentation
- gcloud sql instances list | Google Cloud SDK | Google Cloud Documentation
- gcloud sql instances describe | Google Cloud SDK | Google Cloud Documentation
- gcloud sql instances patch | Google Cloud SDK | Google Cloud Documentation
- CIS Security Documentation
- CIS Google Cloud Computing Platform Benchmarks