Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log client IP with requests #170

Merged
merged 1 commit into from
Nov 4, 2022
Merged

Log client IP with requests #170

merged 1 commit into from
Nov 4, 2022

Conversation

mkobetic
Copy link
Contributor

@mkobetic mkobetic commented Nov 4, 2022

Looking at grpc-ecosystem/grpc-gateway#174, the gateway should be passing "X-Forwarded-For" in request metadata 🤞

We may need to enable the header on the lb https://docs.aws.amazon.com/global-accelerator/latest/dg/preserve-client-ip-address.headers.html

@mkobetic mkobetic requested a review from a team November 4, 2022 13:22
pkg/api/telemetry.go Outdated Show resolved Hide resolved
@mkobetic
Copy link
Contributor Author

mkobetic commented Nov 4, 2022

Looks like that PR isn't in effect anymore, I don't see RemoteAddr in metadata when testing locally, but I do see the x-forwarded-for header passed along by the gateway, so I'm going with that instead.

@mkobetic mkobetic merged commit 4d3ff2d into main Nov 4, 2022
@mkobetic mkobetic deleted the log-client-ip branch November 4, 2022 18:16
@mkobetic mkobetic mentioned this pull request Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants