linkerd2-proxy/tests/support
Oliver Gould d5e2ff2cb7
Canonicalize outbound names via DNS for inbound profiles (#129)
When the inbound proxy receives requests, these requests may have
relative `:authority` values like _web:8080_. Because these requests can
come from hosts with a variety of DNS configurations, the inbound proxy
can't make a sufficient guess about the fully qualified name (e.g.
_web.ns.svc.cluster.local._).

In order for the inbound proxy to discover inbound service profiles, we
need to establish some means for the inbound proxy to determine the
"canonical" name of the service for each request.

This change introduces a new `l5d-dst-canonical` header that is set by
the outbound proxy and used by the remote inbound proxy to determine
which profile should be used.

The outbound proxy determines the canonical destination by performing
DNS resolution as requests are routed and uses this name for profile and
address discovery. This change removes the proxy's hardcoded Kubernetes
dependency.

The `LINKERD2_PROXY_DESTINATION_GET_SUFFIXES` and
`LINKERD2_PROXY_DESTINATION_PROFILE_SUFFIXES` environment variables
control which domains may be discovered via the destination service.

Finally, HTTP settings detection has been moved into a dedicated routing
layer at the "bottom" of the stack. This is done do that
canonicalization and discovery need not be done redundantly for each set
of HTTP settings. Now, HTTP settings, only configure the HTTP client
stack within an endpoint.

Fixes linkerd/linkerd2#1798
2018-11-15 11:41:17 -08:00
..
client.rs fix orig-proto translation with HTTP1 chunked bodies (#42) 2018-08-06 16:20:32 -07:00
controller.rs Canonicalize outbound names via DNS for inbound profiles (#129) 2018-11-15 11:41:17 -08:00
mod.rs Canonicalize outbound names via DNS for inbound profiles (#129) 2018-11-15 11:41:17 -08:00
proxy.rs change Inbound to always use localhost 2018-11-14 15:59:48 -08:00
server.rs fix orig-proto translation with HTTP1 chunked bodies (#42) 2018-08-06 16:20:32 -07:00
tcp.rs Migrate `conduit-proxy` to `linkerd2-proxy` 2018-07-07 22:45:21 +00:00