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

luminous: rgw: bucket policy evaluation logical error #19810

Merged
merged 2 commits into from Jan 19, 2018

Conversation

adamemerson
Copy link
Contributor

@adamemerson adamemerson commented Jan 5, 2018

Since some operations check the user against the bucket owner in the
absence of a policy, rather than open-coding that everywhere, act like
a proper computer scientist and abstract it.

Fixes: http://tracker.ceph.com/issues/21896

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit 8818a0c)
I spent some more time looking through the documentation of how work
is evaluated, and the examples on

<http://docs.aws.amazon.com/AmazonS3/latest/dev/
access-control-auth-workflow-bucket-operation.html>

Have convinced me that the behavior that was requested is more correct
than what we were doing before.

Fixes: http://tracker.ceph.com/issues/21901

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit 343a25a)
@shinobu-x
Copy link
Contributor

@adamemerson
Copy link
Contributor Author

Jenkins, retest this please.

@adamemerson adamemerson requested review from theanalyst and smithfarm and removed request for mattbenjamin January 10, 2018 23:08
@smithfarm smithfarm changed the title luminous: Backport fix for 21901 luminous: rgw: bucket policy evaluation logical error Jan 11, 2018
@smithfarm
Copy link
Contributor

@adamemerson Thanks for the backport (again)! The workflow for backport PRs is different than for PRs targeting master. Whereas in master the idea is to get a positive review first, and then proceed with testing, for backports this is reversed: first the backport PR undergoes integration testing (we gang them up for this), and then it is reviewed. It can be reviewed by anyone, but the only reviews that "count" are ones from either the component lead or from the person who merged the corresponding master PR that is being cherry-picked.

(It would be great if someone helped with testing rgw backports PRs. . . like I said, they can be ganged up and tested in batches.)

@yuriw
Copy link
Contributor

yuriw commented Jan 16, 2018

@yuriw
Copy link
Contributor

yuriw commented Jan 19, 2018

@adamemerson @smithfarm @theanalyst @cbodley ready for merge

@cbodley cbodley merged commit 6d56c2f into ceph:luminous Jan 19, 2018
@adamemerson adamemerson deleted the wip-luminous-21901 branch January 29, 2018 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants