Repository navigation
rgw: support S3 Object Ownership controls to disable object ACLs - #64152
Conversation
There was a problem hiding this comment.
i think you are missing the doc for the new PUT/GET/DELETE operations
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
rebased over conflict with #64251 |
chardan
left a comment
There was a problem hiding this comment.
This looks ok to me-- it's probably good to get some further feedback from others who might be more familiar with the feature itself, but code looks fine! Thanks for your work on this.
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
when object uploads specify a canned acl, they call create_canned_acl() to build the corresponding RGWAccessControlPolicy ObjectOwnership adds two special cases to this: * BucketOwnerEnforced denies acls other than "bucket-owner-full-control" * BucketOwnerPreferred overrides owner for "bucket-owner-full-control" Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
| rgw::s3::OwnershipControls controls; | ||
| controls.object_ownership = *object_ownership; | ||
| encode(controls, createparams.attrs[RGW_ATTR_OWNERSHIP_CONTROLS]); | ||
| } // TODO: config option to set default ownership when not requested |
There was a problem hiding this comment.
Should we make a feature tracker for this? You can assign it to me. I just don't want this to get forgotten, since it's access control related and we should be able to match the default Amazon behavior if configured so users don't get surprised.
There was a problem hiding this comment.
thanks, i created an rfe in https://tracker.ceph.com/issues/72373. as i mention there, it might be very challenging to test non-default configurations
|
|
||
| using rgw::s3::ObjectOwnership::BucketOwnerEnforced; | ||
| if (ownership.object_ownership == BucketOwnerEnforced) { | ||
| // reject BucketOwnerEnforced if the bucket's acl doesn't |
There was a problem hiding this comment.
We should add in docs/release note somewhere that this doesn't match the Amazon behavior of suspending ACL enforcement and re-enabling it with the saved ACLs if changed from ObjectWriter to OwnerEnforced and back.
There was a problem hiding this comment.
i assume you're talking about the "Re-enabling ACLs" section under https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html#object-ownership-changes?
changing between ObjectWriter and BucketOwnerEnforced doesn't modify any object acls, authorization just ignores object acls when BucketOwnerEnforced. when switching back to ObjectWriter, those preexisting object acls would start being enforced again. isn't this the same behavior as aws?
|
jenkins test make check |
|
@cbodley IS this QA-able or do we need some S3tests we're waiting on? |
there are tests in ceph/s3-tests#660. i can rebase them and start qa |
|
|
jenkins test make check |
|
updated ceph/s3-tests#660 with fails_on_dbstore to address rgw/dbstore failures rerun pending in https://pulpito.ceph.com/cbodley-2025-09-19_13:36:08-rgw-wip-63323-distro-default-gibba/ |
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
|
cc @adamemerson @ivancich we need to come up with a process that handles pr validation with custom s3-tests. the needs-qa label caused this to be merged without its test coverage |
|
This commit was merged 5 months ago. But it's missing in version 20 (tentacle). Should I wait for version 21, or will it be included in 20.2.x? |
@MaximMonin sorry, there are no plans to backport for tentacle - backports are usually reserved for bug fixes |
https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html
Fixes: https://tracker.ceph.com/issues/63323
TODO:
x-amz-object-ownership: BucketOwnerPreferred | ObjectWriter | BucketOwnerEnforcedShow available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition