Project

General

Profile

Actions

Bug #48351

closed

object-lock enabled is not working on 14.2.9 - files still deletable

Added by Torsten Ennenbach over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
14.2.9
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rados
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

the object lock mentioned in https://github.com/ceph/ceph/pull/29905 - objects within buckets, created with object-lock enabled , are still deletable.

The commands:
#> aws s3api create-bucket --bucket locktest --endpoint http://our-s3 --object-lock-enabled-for-buckets
#> aws s3api put-object-lock-configuration --bucket locktest --endpoint http://our-s3 --object-lock-configuration '{ "ObjectLockEnabled":"Enabled", "Rule": { "DefaultRetention": { "Mode": "COMPLIANCE", "Days": 50 }}}'
are working without an issue but if you put a file into this bucket, the expected behavior should be "file could not deleted before 50 days".

But behavior is: file is deletable before the Compliance Days are reached


Files

Actions

Also available in: Atom PDF