Skip to content

Commit 5e73745

Browse files
fix auth flags check
1 parent 75b7c7c commit 5e73745

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ydb/core/kafka_proxy/kafka_connection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class TKafkaConnection: public TActorBootstrapped<TKafkaConnection>, public TNet
103103

104104
void Bootstrap() {
105105
Context->ConnectionId = SelfId();
106-
Context->RequireAuthentication = NKikimr::AppData()->EnforceUserTokenRequirement;
106+
Context->RequireAuthentication = NKikimr::AppData()->EnforceUserTokenRequirement || NKikimr::AppData()->PQConfig.GetRequireCredentialsInNewProtocol();
107107
// if no authentication required, then we can use local database as our target
108108
if (!Context->RequireAuthentication) {
109109
Context->DatabasePath = NKikimr::AppData()->TenantName;
@@ -478,7 +478,7 @@ class TKafkaConnection: public TActorBootstrapped<TKafkaConnection>, public TNet
478478
return;
479479
}
480480

481-
Context->RequireAuthentication = NKikimr::AppData()->EnforceUserTokenRequirement;
481+
Context->RequireAuthentication = NKikimr::AppData()->EnforceUserTokenRequirement || NKikimr::AppData()->PQConfig.GetRequireCredentialsInNewProtocol();
482482
Context->UserToken = event->UserToken;
483483
Context->DatabasePath = event->DatabasePath;
484484
Context->AuthenticationStep = authStep;

0 commit comments

Comments
 (0)