]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/auth: handle HTTP OPTIONS with v4 auth
authorTobias Urdin <tobias.urdin@binero.se>
Mon, 7 Aug 2023 20:34:43 +0000 (20:34 +0000)
committerMykola Golub <mgolub@suse.com>
Tue, 12 Sep 2023 09:12:33 +0000 (12:12 +0300)
commitd4fd9f7b000faefe188946c148979b7e14f7c158
tree24459d259f8ce9c800ffa0e4f22913a97ef3eb11
parent802a1cbc930b5d902033634727517623abb181ae
rgw/auth: handle HTTP OPTIONS with v4 auth

This adds code to properly verify the signature
for HTTP OPTIONS calls that is preflight CORS
requests passing the expected method in the
access-control-request-method header.

Fixes: https://tracker.ceph.com/issues/62033
Signed-off-by: Tobias Urdin <tobias.urdin@binero.com>
(cherry picked from commit 814cae52baf04d9c3f0f3bd04b8e2daf16eb3874)
src/rgw/rgw_cors.h
src/rgw/rgw_op.cc
src/rgw/rgw_rest_s3.cc