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
Since grpc-gateway creates a HTTP REST service that then subsequently calls a gRPC client, the loopback network hop causes all requests at the gRPC service to appear to originate from ::1 (localhost in IPv6).
It would be nice if X-Forwarded-For (or the newer Forwarded RFC header) were populated with the original external address, but since gRPC is not another HTTP endpoint, we need some other context attribute set such as ProxyRemoteAddr (or whatever) in the forwarded gRPC request.
I may make a PR for this as it's something I need right away, and don't see an obvious workaround.
The text was updated successfully, but these errors were encountered:
Since grpc-gateway creates a HTTP REST service that then subsequently calls a gRPC client, the loopback network hop causes all requests at the gRPC service to appear to originate from
::1
(localhost
in IPv6).Example gRPC service:
It would be nice if
X-Forwarded-For
(or the newerForwarded
RFC header) were populated with the original external address, but since gRPC is not another HTTP endpoint, we need some other context attribute set such as ProxyRemoteAddr (or whatever) in the forwarded gRPC request.I may make a PR for this as it's something I need right away, and don't see an obvious workaround.
The text was updated successfully, but these errors were encountered: