Other Articles
- Cloud SQL – Configure Private IP
- Cloud SQL – Monitor CPU Utilization
- Cloud SQL – Enable Deletion Protection
- Cloud SQL – Enable Disk Encryption
- Cloud SQL – Enable Automated Backups
- Cloud SQL – Enable Log Export
- Cloud SQL – Enforce Password Validation
- Cloud SQL – Protect From Internet Access
- Cloud SQL – Enforce Secure Transport
- Compute Engine – Block Project-Wide SSH Keys
- Compute Engine – Disable IP Forwarding
- Compute Engine – Disable Public IP Addresses
- Compute Engine – Disable Serial Port Access
- Compute Engine – Enable Confidential Computing
- Compute Engine – Enable OS Login
- Compute Engine – Enable Shielded VM
- Compute Engine – Restrict Default Service Account
- General – Deny Public Access to KMS Keys
- General – Enforce Duties Separation
- General – Enforce KMS Key Rotation
- General – Restrict Admin Roles on Service Accounts
- Cloud Run – Configure Timeout Settings
- Cloud Storage – Enable Bucket Encryption
- Cloud Storage – Enable Bucket Logging
- Cloud Storage – Enforce Uniform Bucket-Level Access
- Cloud Storage – Restrict Public Access
- IAM Users – Enforce GCP-Managed Keys
- IAM Users – Rotate External User-Managed Service Account Keys
Cloud Storage – Enable Bucket Versioning
This check ensures that object versioning is enabled to protect against accidental deletion or modification.
Check Details
- Resource: Storage
- Check: Enable object versioning
- Risk: Without object versioning enabled, deleted or overwritten objects cannot be recovered, increasing the risk of permanent data loss.
Remediation via Google Cloud Console
-
Log in to the Google Cloud Console and navigate to
Buckets.
- Click on the name of the affected Cloud Storage bucket.
- Open the Protection tab.
-
Locate the Object versioning section and click Edit.
-
Confirm.
Remediation via Google Cloud CLI
-
Open the Google Cloud Console and launch Cloud Shell.
-
Enable object versioning on the bucket:
gsutil versioning set on gs://<BUCKET_NAME>/
Replace <BUCKET_NAME> with the name of the Cloud Storage bucket.
Default Value
By default, object versioning is disabled on Google Cloud Storage buckets.