This is an automated email from the ASF dual-hosted git repository. plat1ko pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new dc09fab881f decrypt sk (#34174) dc09fab881f is described below commit dc09fab881fd2d6145cd768ba351510ff19e6caf Author: AlexYue <yj976240...@gmail.com> AuthorDate: Fri Apr 26 20:31:57 2024 +0800 decrypt sk (#34174) --- be/src/util/s3_util.h | 4 ++-- cloud/src/meta-service/meta_service_resource.cpp | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/be/src/util/s3_util.h b/be/src/util/s3_util.h index 62d8b4f1d64..46226b79359 100644 --- a/be/src/util/s3_util.h +++ b/be/src/util/s3_util.h @@ -132,8 +132,8 @@ struct S3Conf { cloud::ObjectStoreInfoPB::Provider provider; std::string to_string() const { - return fmt::format("(bucket={}, prefix={}, client_conf={})", bucket, prefix, - client_conf.to_string()); + return fmt::format("(bucket={}, prefix={}, client_conf={}, sse_enabled={})", bucket, prefix, + client_conf.to_string(), sse_enabled); } }; diff --git a/cloud/src/meta-service/meta_service_resource.cpp b/cloud/src/meta-service/meta_service_resource.cpp index 1dd04617cc4..0adb3f0ac7e 100644 --- a/cloud/src/meta-service/meta_service_resource.cpp +++ b/cloud/src/meta-service/meta_service_resource.cpp @@ -277,6 +277,14 @@ void MetaServiceImpl::get_obj_store_info(google::protobuf::RpcController* contro storage_vault_start.push_back('\x00'); // Update to next smallest key for iteration } while (it->more()); } + for (auto& vault : *response->mutable_storage_vault()) { + if (vault.has_obj_info()) { + if (auto ret = decrypt_and_update_ak_sk(*vault.mutable_obj_info(), code, msg); + ret != 0) { + return; + } + } + } response->mutable_obj_info()->CopyFrom(instance.obj_info()); if (instance.has_default_storage_vault_id()) { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org