From 468b64542a4712bd91a7baf7501a744bbbacd18b Mon Sep 17 00:00:00 2001 From: Luke Young <91491244+lyoung-confluent@users.noreply.github.com> Date: Wed, 10 Jan 2024 22:58:59 -0800 Subject: [PATCH] lambdaurl: Populate RemoteAddr with SourceIP --- lambdaurl/http_handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lambdaurl/http_handler.go b/lambdaurl/http_handler.go index 79a63e18..53c5ba54 100644 --- a/lambdaurl/http_handler.go +++ b/lambdaurl/http_handler.go @@ -118,6 +118,7 @@ func Wrap(handler http.Handler) func(context.Context, *events.LambdaFunctionURLR if err != nil { return nil, err } + httpRequest.RemoteAddr = request.RequestContext.HTTP.SourceIP for k, v := range request.Headers { httpRequest.Header.Add(k, v) }