Skip to content

rgw: respect policies in data sync in user mode#60685

Merged
ivancich merged 2 commits intoceph:mainfrom
clwluvw:data-sync-perm
Jan 3, 2025
Merged

rgw: respect policies in data sync in user mode#60685
ivancich merged 2 commits intoceph:mainfrom
clwluvw:data-sync-perm

Conversation

@clwluvw
Copy link
Member

@clwluvw clwluvw commented Nov 10, 2024

In the data sync phase, both source and destination object permissions are evaluated locally on the destination zone, leading to two issues:

  1. Source object policies aren't evaluated, causing access to be denied when the uid is bound to an account or IAM policies are involved. This can be fixed by passing the UID as rgwx-uid, allowing the source zone to handle policy evaluation.
  2. Destination object policies are skipped, resulting in access denial when IAM policies grant access to the UID. This can be resolved by using verify_bucket_permission() instead of verify_bucket_permission_no_policy().

Fixes: https://tracker.ceph.com/issues/68884

Source object policies aren't evaluated, causing access to be denied
when the uid is bound to an account or IAM policies are involved.
This can be fixed by passing the UID as 'rgwx-uid', allowing the
source zone to handle policy evaluation.

Fixes: https://tracker.ceph.com/issues/68884
Signed-off-by: Seena Fallah <[email protected]>
Destination object policies are skipped, resulting in access denial
when IAM policies grant access to the UID. This can be resolved by
using verify_bucket_permission() instead of
verify_bucket_permission_no_policy().

Fixes: https://tracker.ceph.com/issues/68884
Signed-off-by: Seena Fallah <[email protected]>
@clwluvw
Copy link
Member Author

clwluvw commented Nov 27, 2024

jenkins test api

@ivancich ivancich added the wip-eric-testing-2 for ivancich testing label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants