Description
Ensure object versioning is enabled on Object Storage buckets that hold critical data, so every change or deletion keeps the previous version of the object, which can be restored if needed.
Rationale
Without versioning, overwriting or deleting an object removes the old data permanently. Mistakes, faulty applications, or ransomware can then destroy data with no way to recover it. Versioning keeps earlier versions, and it is also required for Object Lock.
Impact
Overwritten or deleted objects can be restored
Protects against accidental changes and ransomware
Increases storage use, so lifecycle rules for old versions are recommended
Default Value
By default, versioning is disabled on buckets.
Pre-Requisites
Permission to manage Object Storage in the Public Cloud project
Test Plan
Log in to the OVHcloud Control Panel at https://www.ovh.com/manager/.
In the left-hand menu, select Public Cloud and choose your project.
In the left-hand menu, select Object Storage.
Select the bucket and, in the General information tab, check the versioning status.
Alternatively, run: aws s3api get-bucket-versioning --bucket <bucket_name>
If versioning is not enabled on a critical bucket, follow the implementation steps.
Implementation Steps
Log in to the OVHcloud Control Panel at https://www.ovh.com/manager/.
In the left-hand menu, select Public Cloud and choose your project.
In the left-hand menu, select Object Storage.
Select the bucket and, in the General information tab, enable versioning.
Alternatively, run: aws s3api put-bucket-versioning --bucket <bucket_name> --versioning-configuration Status=Enabled
Backout Plan
Run: aws s3api put-bucket-versioning --bucket <bucket_name> --versioning-configuration Status=Suspended. Existing versions are kept.
Reference