You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the Rack middleware and client IPs are being set via the X-Forwarded-For header, it looks like the client IP is being sent to the X-Ray service as the last character of the header value.
Payload sent to X-Ray daemon
{"name":"example","id":"0c01ca44eb76e204","start_time":1519090666.569221,"end_time":1519090666.56938,"http":{"request":{"url":"http://localhost:9292/","user_agent":"curl/7.54.0","method":"GET","client_ip":"8","x_forwarded_for":true},"response":{"status":200,"content_length":82}},"trace_id":"1-5a8b7bea-6ad09f5d5612bb63e07fadb3"}
When using the Rack middleware and client IPs are being set via the X-Forwarded-For header, it looks like the client IP is being sent to the X-Ray service as the last character of the header value.
Rackup snippet for reproduction:
The following commands trigger a trace to be sent to localhost on UDP port 2000 (the X-Ray default).
Results in client_ip set to
4
.Results in client_ip set to
8
.Payload sent to X-Ray daemon
{"name":"example","id":"0c01ca44eb76e204","start_time":1519090666.569221,"end_time":1519090666.56938,"http":{"request":{"url":"http://localhost:9292/","user_agent":"curl/7.54.0","method":"GET","client_ip":"8","x_forwarded_for":true},"response":{"status":200,"content_length":82}},"trace_id":"1-5a8b7bea-6ad09f5d5612bb63e07fadb3"}Results in client_ip set to
f
.The text was updated successfully, but these errors were encountered: