]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/auth: Add assert if allow_expired is not false
authorTobias Urdin <tobias.urdin@binero.se>
Mon, 9 May 2022 15:10:36 +0000 (15:10 +0000)
committerTobias Urdin <tobias.urdin@binero.se>
Wed, 21 Sep 2022 20:33:29 +0000 (20:33 +0000)
This adds an assert if allow_expired is not false where
it must be false and should logically only get there when
it's false.

Signed-off-by: Tobias Urdin <tobias.urdin@binero.com>
src/rgw/rgw_auth_keystone.cc

index 8cdb05b6d3bb61121eb4f63f15dcf7942294248b..d247ffabd9184fe861a314c7297c758df757cc1c 100644 (file)
@@ -268,6 +268,7 @@ TokenEngine::authenticate(const DoutPrefixProvider* dpp,
     } else {
       /* Service token was not found in cache. Go to Keystone for validating
        * the token. The allow_expired here must always be false. */
+      ceph_assert(allow_expired == false);
       st = get_from_keystone(dpp, service_token, allow_expired);
 
       if (! st) {