]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Tue, 26 Sep 2023 16:16:54 +0000 (12:16 -0400)
commit71b2070b744455ddd94d6a19dc3faf9c938c71ad
tree64b7c1b1b4c4efd3992e00e3fc5bfd18203241fc
parent05c5f97c1d2498a685c37ab5833ba503c1041730
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>
src/rgw/rgw_auth_keystone.cc