summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Doronin <[email protected]>2024-12-26 16:01:22 +0100
committerGitHub <[email protected]>2024-12-26 18:01:22 +0300
commit6849beef5b683fa246fd067a7a1ce794cb5aea7e (patch)
tree308ba4e8c562c0bbcd4c28471061f14c5f2d01cb
parente5b885664d38770f02d6ac7a338f86bdaf966d3e (diff)
TEvRequestAuthAndCheck has been fixed for proxy_simple (#13028)
-rw-r--r--ydb/core/grpc_services/grpc_request_proxy_simple.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/ydb/core/grpc_services/grpc_request_proxy_simple.cpp b/ydb/core/grpc_services/grpc_request_proxy_simple.cpp
index c2274c3d7be..5f4168ff457 100644
--- a/ydb/core/grpc_services/grpc_request_proxy_simple.cpp
+++ b/ydb/core/grpc_services/grpc_request_proxy_simple.cpp
@@ -86,6 +86,11 @@ private:
request->SendResult(*result, Ydb::StatusIds::SUCCESS);
}
+ void Handle(TEvRequestAuthAndCheck::TPtr& ev, const TActorContext&) {
+ ev->Get()->FinishSpan();
+ ev->Get()->ReplyWithYdbStatus(Ydb::StatusIds::SUCCESS);
+ }
+
void Handle(TEvProxyRuntimeEvent::TPtr& event, const TActorContext&) {
IRequestProxyCtx* requestBaseCtx = event->Get();
TString validationError;
@@ -221,6 +226,7 @@ void TGRpcRequestProxySimple::StateFunc(TAutoPtr<IEventHandle>& ev) {
hFunc(TEvents::TEvUndelivered, HandleUndelivery);
HFunc(TEvListEndpointsRequest, PreHandle);
HFunc(TEvProxyRuntimeEvent, PreHandle);
+ HFunc(TEvRequestAuthAndCheck, PreHandle);
default:
Y_ABORT("Unknown request: %u\n", ev->GetTypeRewrite());
break;