Skip to content

Commit afafbcd

Browse files
committed
Removed SourceIP as it is considered sensitive information
1 parent f0317ea commit afafbcd

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

example/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $ curl -s 'http://localhost:8080/foo/bar?testkey=testvalue' | jq .
3131
"method": "GET",
3232
"path": "/foo/bar",
3333
"protocol": "HTTP/1.1",
34-
"sourceIp": "...",
34+
"sourceIp": "",
3535
"userAgent": "curl/8.7.1"
3636
},
3737
"authentication": {

main.go

-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ func buildLambdaEvent(r *http.Request) (*events.APIGatewayV2HTTPRequest, error)
7878
Method: r.Method,
7979
Path: r.URL.Path,
8080
Protocol: r.Proto,
81-
SourceIP: r.RemoteAddr,
8281
UserAgent: r.UserAgent(),
8382
},
8483
},

test/e2e.test.mjs

-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ test("E2E Test for GET Request", async () => {
3434
method: "GET",
3535
path: "/foo/bar",
3636
protocol: "HTTP/1.1",
37-
sourceIp: expect.any(String),
3837
userAgent: expect.any(String),
3938
}),
4039
authentication: expect.objectContaining({
@@ -97,7 +96,6 @@ test("E2E Test for POST Request", async () => {
9796
method: "POST",
9897
path: "/foo/bar",
9998
protocol: "HTTP/1.1",
100-
sourceIp: expect.any(String),
10199
userAgent: expect.any(String),
102100
}),
103101
authentication: expect.objectContaining({

0 commit comments

Comments
 (0)