]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/sts: fixes getsessiontoken authenticated with LDAP/Keystone, 44463/head
authorPritha Srivastava <prsrivas@redhat.com>
Thu, 11 Mar 2021 12:57:45 +0000 (18:27 +0530)
committerCasey Bodley <cbodley@redhat.com>
Tue, 17 Oct 2023 15:25:08 +0000 (11:25 -0400)
when object is uploaded via chunked encoding.

fixes: https://tracker.ceph.com/issues/49797

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
(cherry picked from commit f1407efb903bbb264a68ed962086194feaed0b44)

src/rgw/rgw_rest_s3.cc

index fe45f6c71d7777d5a1dc80ff52e182680802a871..c25c5d9ddd4ae21bc4372e9bbf19e51700ab0aad 100644 (file)
@@ -5954,7 +5954,7 @@ rgw::auth::s3::STSEngine::authenticate(
   if (token.acct_type == TYPE_KEYSTONE || token.acct_type == TYPE_LDAP) {
     auto apl = remote_apl_factory->create_apl_remote(cct, s, get_acl_strategy(),
                                             get_creds_info(token));
-    return result_t::grant(std::move(apl), completer_factory(boost::none));
+    return result_t::grant(std::move(apl), completer_factory(token.secret_access_key));
   } else if (token.acct_type == TYPE_ROLE) {
     t_attrs.user_id = std::move(token.user); // This is mostly needed to assign the owner of a bucket during its creation
     t_attrs.token_policy = std::move(token.policy);