From 648db5f0899c258ca65bc5a6ccc957c4278a6809 Mon Sep 17 00:00:00 2001 From: Andrei Cheboksarov <37665782+cheb0@users.noreply.github.com> Date: Tue, 16 Jun 2026 13:28:14 +0400 Subject: [PATCH] add validation that from <= to --- proxyapi/grpc_v1.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proxyapi/grpc_v1.go b/proxyapi/grpc_v1.go index 90611a29..79dd341a 100644 --- a/proxyapi/grpc_v1.go +++ b/proxyapi/grpc_v1.go @@ -201,6 +201,9 @@ func (g *grpcV1) doSearch( fromTime := req.Query.From.AsTime() toTime := req.Query.To.AsTime() + if fromTime.After(toTime) { + return nil, status.Error(codes.InvalidArgument, `"from" timestamp must not be after "to" timestamp`) + } if span.IsRecordingEvents() { span.AddAttributes( trace.StringAttribute("query", req.Query.Query),