From 3a93ed1e265b5e368f0d20c3a2b8395d2c9f787d Mon Sep 17 00:00:00 2001 From: Luke Young <91491244+lyoung-confluent@users.noreply.github.com> Date: Thu, 11 Jan 2024 10:27:34 -0800 Subject: [PATCH] lambdaurl: Populate RemoteAddr with SourceIP (#546) --- 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) }