Skip to content

Commit

Permalink
Fix cloudId for YMQ (ydb-platform#9088)
Browse files Browse the repository at this point in the history
  • Loading branch information
nshestakov committed Sep 12, 2024
1 parent 27e37b9 commit 62f242a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ydb/core/http_proxy/http_req.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ namespace NKikimr::NHttpProxy {
"' iam token size: " << HttpContext.IamToken.size());
TMap<TString, TString> peerMetadata {
{NYmq::V1::FOLDER_ID, FolderId},
{NYmq::V1::CLOUD_ID, HttpContext.UserName ? HttpContext.UserName : CloudId},
{NYmq::V1::CLOUD_ID, CloudId ? CloudId : HttpContext.UserName },
{NYmq::V1::USER_SID, UserSid},
{NYmq::V1::REQUEST_ID, HttpContext.RequestId},
{NYmq::V1::SECURITY_TOKEN, HttpContext.SecurityToken},
Expand Down Expand Up @@ -408,7 +408,7 @@ namespace NKikimr::NHttpProxy {
ctx,
NKikimrServices::HTTP_PROXY,
"Not retrying GRPC response."
<< " Code: " << get<1>(errorAndCode)
<< " Code: " << get<1>(errorAndCode)
<< ", Error: " << get<0>(errorAndCode);
);

Expand All @@ -434,7 +434,7 @@ namespace NKikimr::NHttpProxy {
ctx,
NKikimrServices::HTTP_PROXY,
TStringBuilder() << "Got cloud auth response."
<< " FolderId: " << ev->Get()->FolderId
<< " FolderId: " << ev->Get()->FolderId
<< " CloudId: " << ev->Get()->CloudId
<< " UserSid: " << ev->Get()->Sid;
);
Expand Down Expand Up @@ -553,7 +553,7 @@ namespace NKikimr::NHttpProxy {
.Counters = nullptr,
.AWSSignature = std::move(HttpContext.GetSignature()),
.IAMToken = HttpContext.IamToken,
.FolderID = ""
.FolderID = ""
};

auto authRequestProxy = MakeHolder<NSQS::THttpProxyAuthRequestProxy>(
Expand Down

0 comments on commit 62f242a

Please sign in to comment.