Part 2: Configuring WORM from Objects UI.

Anirudha | Wed, 04/15/2020 - 04:02

You can enable this feature either from Objects UI or using standard S3 SDK.

Lets take a quick look at, what all options Objects UI provides :

Open Objects UI :

 

UI also shows Versioning and WORM status for each bucket.

In the above screen, you can see we have selected worm-demo , which enables the “Configure WORM” option on the screen. 

Select Bucket -> Click on “Configure WORM” option -> Enter Days (You can select Days, Months, Years from the dropdown menu) -> Click on “Enable WORM”

 

In Objects2.0, versioning is optional. We will discuss this in another blog.

Lets add few object/versions and validate if this works.

I am going to use Cyberduck for further experiments. Share the bucket with IAM user and access it via Cyberduck. Follow this post for the steps.

 

I have uploaded two versions of the same file (logs) in the bucket.

Select one of the version and try deleting it,

Now, this clearly says, deletion is not allowed since object-lock is configured i.e WORM is configured.

I was able to increase the WORM period from 1Day to 10Days, but when tried changing it from 10Days to 9Days, it failed :

 

You may also see, “Enable WORM” checkmark is available for disabling the feature. This is only possible for first 24hrs and then this checkmark will be disabled. I.e feature is permanently enabled on the bucket.

And the only way to get rid of this bucket is, to delete all the objects from the bucket once their retention period is elapsed. And then proceed with bucket deletion.

You can also configure LifeCycle policies on this Bucket. Follow this post for the steps.