New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pacific: rgw/sts: fix read_obj_policy permission evaluation #44471
Conversation
@pritha-srivastava can you please rebase? |
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
@pritha-srivastava needs rebase |
to pass in boost::none for the identity parameter as identity IAM policies do not have a Principal for evaluation. The Principal is the role or the identity to which the policy is attached. Also removing boost::optional<const rgw::auth::Identity&> id paremeter from eval_identity_or_session_policies in all places, since an identity or a session policy doesnt have a Principal element. The identity (user or role) or the session is implicitly the 'Principal' to which the policy is attached. fixes: https://tracker.ceph.com/issues/52302 Signed-off-by: Pritha Srivastava <prsrivas@redhat.com> (cherry picked from commit 59c46f2) Conflicts: src/rgw/rgw_op.cc conflicts with auth in DeleteMultiObj
22fe613
to
36d428b
Compare
pushed a rebase. documented conflicts in RGWDeleteMultiObj from e1534a5 |
teuthology failure related to STS test in: 2023-11-15T21:59:09.081 INFO:teuthology.orchestra.run.smithi111.stderr: 2023-11-15T21:59:09.083 INFO:teuthology.orchestra.run.smithi111.stderr: nuke_prefixed_buckets(prefix=prefix, client=alt_client) |
i think this was https://tracker.ceph.com/issues/53090, which @TRYTOBE8TME fixed in ceph/s3-tests#428. that fix was on ceph-reef and ceph-quincy branches, but not ceph-pacific so i cherry-picked it there |
backport tracker: https://tracker.ceph.com/issues/53648
backport of #42009
parent tracker: https://tracker.ceph.com/issues/52302
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/master/src/script/ceph-backport.sh