]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: better tenant id from the uri on anonymous access 47342/head
authorMarcus Watts <mwatts@redhat.com>
Thu, 7 Jul 2022 07:33:31 +0000 (03:33 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 28 Jul 2022 21:45:43 +0000 (17:45 -0400)
commit71a35a7f86cb7f4051c5ea24e0580474a2dd3bd0
tree881321246b262674bfd16846f8ec8cc89976f189
parent0ced8dba89fc71d92ee7683e6a92fe2f6d74bc62
rgw: better tenant id from the uri on anonymous access

When anonymous tries access public bucket, it gets 404,
because rgw doesn't check tenant correctly.

A previous fix for this broke legacy implicit tenants,
because it didn't check for anonymous access.  This version
restricts its behavior to the anonymous user.

Fixes: https://tracker.ceph.com/issues/48001 https://tracker.ceph.com/issues/48382
Original fix by
Author: Rafał Wądołowski <rafal@rafal.net.pl>
Signed-off-by: Rafał Wądołowski <rwadolowski@cloudferro.com>
This fix
Signed-off-by: Marcus Watts <mwatts@redhat.com>
(cherry picked from commit b5880caa505e2df7ff035537c19a8be3a3a8bb8f)
src/rgw/rgw_rest_swift.cc