]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/sts: fixes getsessiontoken authenticated with LDAP/Keystone, 40031/head
authorPritha Srivastava <prsrivas@redhat.com>
Thu, 11 Mar 2021 12:57:45 +0000 (18:27 +0530)
committerPritha Srivastava <prsrivas@redhat.com>
Mon, 15 Mar 2021 10:13:14 +0000 (15:43 +0530)
when object is uploaded via chunked encoding.

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

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
src/rgw/rgw_rest_s3.cc

index 3cdf3afd5d2724f2ecbf3fe807016918790bb341..a4db2df95a681df4c50adfdec7c2b418e01ec615 100644 (file)
@@ -5930,7 +5930,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) {
     auto apl = role_apl_factory->create_apl_role(cct, s, r, user_id, token.policy, token.role_session, token.token_claims, token.issued_at);
     return result_t::grant(std::move(apl), completer_factory(token.secret_access_key));