]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: better tenant id from the uri on anonymous access 47308/head
authorMarcus Watts <mwatts@redhat.com>
Thu, 7 Jul 2022 07:33:31 +0000 (03:33 -0400)
committerMarcus Watts <mwatts@redhat.com>
Wed, 27 Jul 2022 20:59:47 +0000 (16:59 -0400)
commitb5880caa505e2df7ff035537c19a8be3a3a8bb8f
tree6ea15d53665fae15fb6c9f7314b46fba12c151d8
parentb76b6ea16899861d6c266797b3c11d9f68f924d7
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>
src/rgw/rgw_rest_swift.cc