Skip to content
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

octopus: rgw/sts: read_obj_policy() consults iam_user_policies on ENOENT #41415

Merged
merged 1 commit into from
Jun 15, 2021

Conversation

cfsnyder
Copy link
Contributor

backport tracker: https://tracker.ceph.com/issues/50640


backport of #40631
parent tracker: https://tracker.ceph.com/issues/49780

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

when the head object doesn't exist, read_obj_policy() has to decide
whether to return ENOENT or EACCES

when there's a bucket policy, we check whether it has s3ListBucket
permissions. when there's an assumed role, we also need to check
against the role's policies in s->iam_user_policies

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

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 5dc9375)

 Conflicts:
	src/rgw/rgw_op.cc
@yuriw yuriw merged commit 1ca2169 into ceph:octopus Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants