diff --git a/internal/core/src/segcore/load_index_c.cpp b/internal/core/src/segcore/load_index_c.cpp index f1efa77b39..1ed03f7b80 100644 --- a/internal/core/src/segcore/load_index_c.cpp +++ b/internal/core/src/segcore/load_index_c.cpp @@ -31,6 +31,8 @@ NewLoadIndexInfo(CLoadIndexInfo* c_load_index_info, CStorageConfig c_storage_con storage_config.remote_root_path = std::string(c_storage_config.remote_root_path); storage_config.storage_type = std::string(c_storage_config.storage_type); storage_config.iam_endpoint = std::string(c_storage_config.iam_endpoint); + storage_config.useSSL = c_storage_config.useSSL; + storage_config.useIAM = c_storage_config.useIAM; *c_load_index_info = load_index_info.release(); auto status = CStatus(); diff --git a/internal/core/src/storage/MinioChunkManager.cpp b/internal/core/src/storage/MinioChunkManager.cpp index c088216d5b..467bab05b4 100644 --- a/internal/core/src/storage/MinioChunkManager.cpp +++ b/internal/core/src/storage/MinioChunkManager.cpp @@ -27,8 +27,8 @@ #include #include -#include "MinioChunkManager.h" - +#include "storage/MinioChunkManager.h" +#include "exceptions/EasyAssert.h" #include "log/Log.h" #define THROWS3ERROR(FUNCTION) \ @@ -94,6 +94,9 @@ MinioChunkManager::MinioChunkManager(const StorageConfig& storage_config) << " access_key:" << provider->GetAWSCredentials().GetAWSSecretKey() << " token:" << provider->GetAWSCredentials().GetSessionToken() << "}"; } else { + AssertInfo(!storage_config.access_key_id.empty(), "if not use iam, access key should not be empty"); + AssertInfo(!storage_config.access_key_value.empty(), "if not use iam, access value should not be empty"); + client_ = std::make_shared( Aws::Auth::AWSCredentials(ConvertToAwsString(storage_config.access_key_id), ConvertToAwsString(storage_config.access_key_value)),