Project

General

Profile

Actions

Feature #43446

open

Feature #39478: mgr/dashboard: new RGW workflows & RGW enhancements

Feature #39477: mgr/dashboard: add/edit missing RGW bucket info

mgr/dashboard: create bucket with x-amz-bucket-object-lock-enabled

Added by Robert Sander over 4 years ago. Updated over 1 year ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Category:
Component - RGW
Target version:
% Done:

0%

Source:
Community (user)
Tags:
backport_processed
Backport:
nautilus
Reviewed:
Affected Versions:
Pull request ID:

Description

Please implement the possibility to create S3 buckets with x-amz-bucket-object-lock-enabled: true as is now possible thanks to issue #37763


Files

screenshot.gif (178 KB) screenshot.gif Volker Theile, 03/03/2020 02:05 PM

Related issues 1 (0 open1 closed)

Copied to Dashboard - Backport #44656: nautilus: mgr/dashboard: create bucket with x-amz-bucket-object-lock-enabledRejectedActions
Actions #1

Updated by Volker Theile about 4 years ago

Any idea how this should be implemented from a enduser perspective? Is it enough to add a checkbox in the bucket create dialog?

Actions #2

Updated by Volker Theile about 4 years ago

  • Status changed from New to Need More Info
Actions #3

Updated by Volker Theile about 4 years ago

I requested some infos if this feature is availabale via Admin OPS API (https://github.com/ceph/ceph/pull/26538#issuecomment-591371832). If not, then i do not see any chance to implement that in the Dashboard.

Actions #4

Updated by Volker Theile about 4 years ago

  • Subject changed from Dashboard: create bucket with x-amz-bucket-object-lock-enabled to mgr/dashboard: create bucket with x-amz-bucket-object-lock-enabled
Actions #5

Updated by Robert Sander about 4 years ago

Volker Theile wrote:

Any idea how this should be implemented from a enduser perspective? Is it enough to add a checkbox in the bucket create dialog?

IMHO a checkbox would be fully sufficient.

Actions #6

Updated by Lenz Grimmer about 4 years ago

Robert sent me the following additional information in an email:

we made progress on how to create an S3 bucket with the Object Lock feature.

s3cmd announces that it can send additional headers with the create bucket request but this seems not to work:

s3cmd --add-header=x-amz-bucket-object-lock-enabled:true mb s3://lockedbucket

Instead I created a small Python script using the boto module and this code:

conn = boto.connect_s3(…)
conn.create_bucket(bucketname, headers = {'x-amz-bucket-object-lock-enabled': 'true'})

The bucket created with create_bucket() now has the feature enabled. With this code we get the status of the enabled feature:

for bucket in conn.get_all_buckets():
    print bucket.name, bucket.get_versioning_status()
Actions #7

Updated by Lenz Grimmer about 4 years ago

  • Status changed from Need More Info to New
Actions #8

Updated by Lenz Grimmer about 4 years ago

  • Translation missing: en.field_tag_list set to feature-gap, administration
  • Backport set to nautilus
Actions #9

Updated by Volker Theile about 4 years ago

To make it correct we should support the following options for buckets (with enabled versioning):

- Enable/disable locking
- Select the locking mode: retention periods and/or legal holds
- Allow to set the retention period

Actions #10

Updated by Volker Theile about 4 years ago

The UI may look like this:

The locking configuration is only available after the bucket has been created because it can only be enabled when versioning is on (and this is only possible in the 'Edit' mode).

Actions #11

Updated by Robert Sander about 4 years ago

Volker Theile wrote:

The locking configuration is only available after the bucket has been created because it can only be enabled when versioning is on.

I think you need to create the bucket with "x-amz-bucket-object-lock-enabled: true" because otherwise you will not be able to set the features. But I may be wrong.

Actions #12

Updated by Volker Theile about 4 years ago

It comes out that once object locking is enabled, it can NOT be disabled anymore.

The PR https://github.com/ceph/ceph/pull/26538/files#diff-fcc53db6b28c98131b0f269ddf31f6b5R38 is telling something different, but i am not able to disable locking by sending the header {'x-amz-bucket-object-lock-enabled': 'false'}.

Because of that i need to rethink how to implement that feature. Adding a checkbox in the 'Create' dialog seems to be ok because i was able to enable the locking (via sending the {'x-amz-bucket-object-lock-enabled': 'true'} header) without versioning enabled.

Actions #13

Updated by Volker Theile about 4 years ago

  • Pull request ID set to 33821
Actions #14

Updated by Alfonso Martínez about 4 years ago

  • Parent task set to #39477
Actions #15

Updated by Lenz Grimmer about 4 years ago

  • Status changed from In Progress to Pending Backport
  • Target version set to v15.0.0
Actions #16

Updated by Nathan Cutler about 4 years ago

  • Copied to Backport #44656: nautilus: mgr/dashboard: create bucket with x-amz-bucket-object-lock-enabled added
Actions #17

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 143 to Component - RGW
Actions #18

Updated by Backport Bot over 1 year ago

  • Tags set to backport_processed
Actions

Also available in: Atom PDF