- 25 Jun 2024
- 5 Minutes to read
- Print
- PDF
Object Lock: Setting for a Bucket or Object, Disabling, and Applying a Legal Hold
- Updated on 25 Jun 2024
- 5 Minutes to read
- Print
- PDF
For an overview of the Object Lock feature and an understanding of the differences between compliance and object lock, refer to Immutability: Compliance and Object Lock. The difference is important to understand because if you create a bucket that has object lock enabled, compliance is automatically disabled.
The Object Lock feature must be enabled before you can use the functionality. Enabling object lock can be done only during bucket creation. You cannot enable object lock on existing buckets of data. Before defining object lock settings, you should review the Object Lock Features.
The feature described below defines object lock retention settings, and this is available ONLY if object lock was enabled when the bucket was created. Changing the object lock settings does not affect any of the existing objects inside the bucket. These settings only apply to objects that are newly placed into the bucket and come with no associated object lock settings.
Setting Object Lock for a Bucket
When object lock is enabled (when the bucket was created), the Object Lock tab is displayed on the settings page for the bucket. This enables you to set the retention mode at the bucket level.
The setting will apply to all NEW objects placed in the bucket after you complete the instructions below.
- On the Buckets list, clickfor the desired bucket.
- Click Settings.
- Click the Object Lock tab. This tab is displayed only if you already enabled the Object Lockfeature for this bucket.
- To see the modes, toggle to enable Default Object Retention. By default, Governance Mode is enabled.
- Select either Governance Mode or Compliance Mode.
- Configure the Retention Time to set the number of days and time scale (days or years).
- Click Apply.When you update the retention time, it will apply to newly uploaded objects and not to existing objects.
- After reviewing the terms of Governance Mode, type CONFIRM.
- Click Confirm to save the retention mode settings.
You cannot rename an object that has an active retention. If you attempt to do so, this alert is displayed:
Disabling Object Lock for a Bucket
To disable the bucket-level object lock settings, toggle off the Default Object Retention option. Remember that this applies to NEW objects uploaded to the bucket. If existing objects were subject to retention settings, those settings still apply.
Setting Object Lock for an Object
When a bucket has object lock enabled (when the bucket was created), object lock may be indicated for the object in several ways:
- Object lock mode is not set for the bucket or a bucket-level mode was set after the object was uploaded
- Governance mode object lock was set for the bucket before the object was uploaded and, therefore, applies to the object
- Compliance mode object lock was set for the bucket before the object was uploaded and, therefore, applies to the object
Each scenario is presented below.
In addition, a Legal Hold feature is available for an object. A legal hold on an object prevents the deletion of that object, as described in Applying a Legal Hold. The object is "on hold" for an indefinite amount of time until the hold is released.
Object Lock is Not Set
When an object lock mode is not set for the bucket or a bucket level mode is set after the object was uploaded, you can view Object Lock in the File Details.
- In the Bucket List, navigate to the bucket in which the object is located. Click the bucket to show objects.
- Show versions in the Objects list by clicking Show Versions in the upper right of the list:This is an important step because you will not otherwise see object lock information in the File Details.
- Click the name of the object. The File Details panel is displayed. Notice the Object Lock area, for example:
If you want to enable lock for this object only:
- Click Enable.
- Select the mode (Governance or Compliance).
- Enter the date until which the retention will remain in effect. Although a date may be displayed by default, you must enter a date or click the calendar icon and select a date.
- Click Apply.
Governance Mode Object Lock is Set
If Governance mode object lock was set for the bucket, the object lock applies to any newly uploaded object. You can view Object Lock in the File Details.
- In the Bucket List, navigate to the bucket in which the object is located. Click the bucket to show objects.
- Show versions in the Objects list by clicking Show Versions in the upper right of the list:This is an important step because you will not otherwise see object lock information in the File Details.
- Click the name of the object. The File Details panel is displayed. Notice the Object Lock area, which shows that Governance Mode is set and retained until the date/time shown. For example:
You can change the mode and/or retention date. Or, you can indicate that you do not want object lock (None).
- Click Edit.
- Optionally, change the mode to Compliance (and enter a retention date) or None.
- Optionally, you can change only the date until which the retention will remain in effect. Although a date may be displayed by default, you must enter a date or click the calendar icon and select a date.
- Click Apply.
Compliance Mode Object Lock is Set
If Compliance mode object lock was set for the bucket, the object lock applies to any newly uploaded object. You can view Object Lock in the File Details.
- In the Bucket List, navigate to the bucket in which the object is located. Click the bucket to show objects.
- Show versions in the Objects list by clicking Show Versions in the upper right of the list:This is an important step because you will not otherwise see object lock information in the File Details.
- Click the name of the object. The File Details panel is displayed. Notice the Object Lock area, which shows that Compliance Mode is set and retained until the date/time shown. For example:
You can change only the retention date to extend the time period.
- Click Edit.
- You can change the date until which the retention will remain in effect. This must be a date beyond the one already set. Although a date may be displayed by default, you must enter a date or click the calendar icon and select a date.
- Click Apply.
The following message is displayed if you attempt to chane the retention mode to Governance or None.
Applying a Legal Hold
If you want to prevent the deletion of the object for an indefinite amount of time:
- In the Bucket List, navigate to the bucket in which the object is located. Click the bucket to show objects.
- Show versions in the Objects list by clicking Show Versionsin the upper right of the list.This is an important step because you will not otherwise see object lock information in the File Details.
- Click the name of the object. The File Details panel is displayed. Locate Legal Hold in the Object Lock area. For example:
- Enable the Legal Hold toggle.
- Confirm that you want to change the legal hold status for the file by clicking Confirm:
The object is "on hold" until the hold is released by disabling the toggle.