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
In order to allow the Linkerd proxy to be injected into the Ambassador pod and have the requests properly routed by Linkerd, we must add a custom l5d-dst-override header to our requests, as documented here.
This works well as long as Ambassador Auth module is not involved.
With an Auth module configured, Ambassador injects the l5d-dst-override header into the requests that are destined for the auth service, which tricks the Linkerd proxy into routing the auth request to the final upstream service, making all auth requests fail.
To Reproduce
Install Ambassador
Configure a custom Auth module
Configure a mapping
Test to make sure that calls made to Ambassador are properly authenticated (via auth service) then routed to the upstream service (via mapping).
Inject the Linkerd proxy into everything (either add the linkerd.io/inject: enabled annotation to all namespaces, or to all deployments (service, auth, ambassador).
Observe that calls made to Ambassador don't work anymore - the authentication requests are routed to the upstream service, not the auth module.
Disable the auth module
Observe that calls work, they are properly routed to the upstream service
Expected behavior
One of:
The headers configured via add_request_headers are not be added to the auth request
The headers configured via add_request_headers can be configured to be added to the auth request or not
The l5d-dst-override header is automatically added by Ambassador to all requests, setting the appropriate fully-qualified service address for each request (auth or otherwise)
Versions (please complete the following information):
Describe the bug
In order to allow the Linkerd proxy to be injected into the Ambassador pod and have the requests properly routed by Linkerd, we must add a custom
l5d-dst-override
header to our requests, as documented here.This works well as long as Ambassador Auth module is not involved.
With an Auth module configured, Ambassador injects the
l5d-dst-override
header into the requests that are destined for the auth service, which tricks the Linkerd proxy into routing the auth request to the final upstream service, making all auth requests fail.To Reproduce
linkerd.io/inject: enabled
annotation to all namespaces, or to all deployments (service, auth, ambassador).Expected behavior
One of:
add_request_headers
are not be added to the auth requestadd_request_headers
can be configured to be added to the auth request or notl5d-dst-override
header is automatically added by Ambassador to all requests, setting the appropriate fully-qualified service address for each request (auth or otherwise)Versions (please complete the following information):
Additional context
This issue may or may not be related to #921
The text was updated successfully, but these errors were encountered: