Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ydb/public/sdk/cpp/client/iam/common/iam.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ namespace NYdb {

namespace NIam {
constexpr TStringBuf DEFAULT_ENDPOINT = "iam.api.cloud.yandex.net";
constexpr bool DEFAULT_ENABLE_SSL = true;

constexpr TStringBuf DEFAULT_HOST = "169.254.169.254";
constexpr ui32 DEFAULT_PORT = 80;
Expand All @@ -36,6 +37,7 @@ struct TIamEndpoint {
TString Endpoint = TString(NIam::DEFAULT_ENDPOINT);
TDuration RefreshPeriod = NIam::DEFAULT_REFRESH_PERIOD;
TDuration RequestTimeout = NIam::DEFAULT_REQUEST_TIMEOUT;
bool EnableSsl = NIam::DEFAULT_ENABLE_SSL;
};

struct TIamJwtFilename : TIamEndpoint { TString JwtFilename; };
Expand Down Expand Up @@ -88,7 +90,7 @@ class TGrpcIamCredentialsProvider : public ICredentialsProvider {
{
NYdbGrpc::TGRpcClientConfig grpcConf;
grpcConf.Locator = IamEndpoint_.Endpoint;
grpcConf.EnableSsl = true;
grpcConf.EnableSsl = IamEndpoint_.EnableSsl;
Connection_ = THolder<NYdbGrpc::TServiceConnection<TService>>(Client->CreateGRpcServiceConnection<TService>(grpcConf).release());
}

Expand Down