]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/keystone: EC2Engine uses reject() for ERR_SIGNATURE_NO_MATCH
authorCasey Bodley <cbodley@redhat.com>
Tue, 26 Sep 2023 16:16:52 +0000 (12:16 -0400)
committerCasey Bodley <cbodley@redhat.com>
Mon, 2 Oct 2023 20:07:09 +0000 (16:07 -0400)
commitdc02c755b1ca2ba2d281052c77dd9e53d57f6cc3
tree396052441af80cf14b474392b8f94e4be737be12
parent987fa95080ba82385f45e0889919cddc5e2645b0
rgw/keystone: EC2Engine uses reject() for ERR_SIGNATURE_NO_MATCH

ERR_SIGNATURE_NO_MATCH means that we found the given access key in
keystone, so we should use reject() instead of deny() to prevent
other engines like LocalEngine from looking up the access key again

this change causes us to return the SignatureDoesNotMatch error expected
by s3test case test_list_buckets_bad_auth()

Fixes: https://tracker.ceph.com/issues/62989
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 71b2070b744455ddd94d6a19dc3faf9c938c71ad)
src/rgw/rgw_auth_keystone.cc