File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ void TKafkaFetchActor::FillRecordsBatch(const NKikimrClient::TPersQueueFetchResp
148
148
}
149
149
150
150
lastOffset = result.GetOffset ();
151
- lastTimestamp = result.GetWriteTimestampMS ();
151
+ lastTimestamp = result.GetCreateTimestampMS ();
152
152
auto & record = recordsBatch.Records [recordIndex];
153
153
154
154
record.DataChunk = NKikimr::GetDeserializedData (result.GetData ());
Original file line number Diff line number Diff line change @@ -161,7 +161,12 @@ void TKafkaSaslAuthActor::SendLoginRequest(TKafkaSaslAuthActor::TAuthData authDa
161
161
162
162
void TKafkaSaslAuthActor::SendApiKeyRequest () {
163
163
auto entries = NKikimr::NGRpcProxy::V1::GetTicketParserEntries (DatabaseId, FolderId);
164
-
164
+ TString ticket;
165
+ if (Context->Config .GetAuthViaApiKey ()) {
166
+ ticket = " ApiKey " + ClientAuthData.Password ;
167
+ } else {
168
+ ticket = ClientAuthData.Password ;
169
+ }
165
170
Send (NKikimr::MakeTicketParserID (), new NKikimr::TEvTicketParser::TEvAuthorizeTicket ({
166
171
.Database = DatabasePath,
167
172
.Ticket = " ApiKey " + ClientAuthData.Password ,
Original file line number Diff line number Diff line change @@ -2125,7 +2125,8 @@ message TKafkaProxyConfig {
2125
2125
}
2126
2126
2127
2127
optional TProxy Proxy = 7 ;
2128
- optional bool MeteringV2Enabled = 10 [default = false ];
2128
+ optional bool MeteringV2Enabled = 10 [default = true ];
2129
+ optional bool AuthViaApiKey = 11 [default = true ];
2129
2130
}
2130
2131
2131
2132
message TAwsCompatibilityConfig {
You can’t perform that action at this time.
0 commit comments