-
Notifications
You must be signed in to change notification settings - Fork 290
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
feature: Add client ip to inbound request information #1678
Conversation
f8530a0
to
3d11edf
Compare
3d11edf
to
9d3211d
Compare
9d3211d
to
b784169
Compare
ca51c88
to
0a881de
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to run make fmt
also I have one question on logic to get client IP, haven't used the headers too much in the past so going on names to what I think is a potentially better ordering.
593bbb8
to
5cdad32
Compare
5cdad32
to
2677f8c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The jimlambrt-forwarded-for branch contains some required features required by this work. Once PR #17 in that repo is merged, then we can just pull the latest from main
listenerutil.TrustedFromXForwardedFor provides a capability to use XForwardedFor* listener config settings to determine how/if X-Forwarded-For are trusted/allowed for an inbound request
Updated go-secure-stdlib/listenerutil.TrustedFromXForwardedFor which changed how headers are trusted when determining the client ip. We also deferred any support for the real ip header to future work.
2677f8c
to
55db102
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment around the changelog entry
Need to update TestConnection(...) additions to use the new signature and update the CHANGELOG entry.
No description provided.