Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Fix parsing of x-forwarded-for header #31

Merged
merged 3 commits into from
Aug 29, 2021

Conversation

dvic
Copy link
Contributor

@dvic dvic commented Aug 3, 2021

The x-forwarded-for header can contain multiple values, where the first value represents the client ip.

Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For

The x-forwarded-for header can contain multiple values, where the first
value represents the client ip.

Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For
@dvic
Copy link
Contributor Author

dvic commented Aug 3, 2021

One place thees comma separated values are given is with Google loadbalancers + Kubernetes (in our case, not sure if this is the case for everyone).

Copy link
Collaborator

@bryannaegele bryannaegele left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dvic if you have not already, please sign the CLA

https://identity.linuxfoundation.org/projects/cncf

lib/opentelemetry_phoenix.ex Outdated Show resolved Hide resolved
@dvic
Copy link
Contributor Author

dvic commented Aug 3, 2021

@dvic if you have not already, please sign the CLA

https://identity.linuxfoundation.org/projects/cncf

Done 🙂

bryannaegele
bryannaegele previously approved these changes Aug 29, 2021
@bryannaegele bryannaegele dismissed their stale review August 29, 2021 17:33

Failing tests

@bryannaegele bryannaegele merged commit 55e6cee into opentelemetry-beam:main Aug 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants