linkerd2/controller/api/destination
Andrew Seigner f98bc27a38
Fix invalid `l5d-require-id` for some tap requests (#3210)
PR #3154 introduced an `l5d-require-id` header to Tap requests. That
header string was constructed based on the TapByResourceRequest, which
includes 3 notable fields (type, name, namespace). For namespace-level
requests (via commands like `linkerd tap ns linkerd`), type ==
`namespace`, name == `linkerd`, and namespace == "". This special casing
for namespace-level requests yielded invalid `l5d-require-id` headers,
for example: `pd-sa..serviceaccount.identity.linkerd.cluster.local`.

Fix `l5d-require-id` string generation to account for namespace-level
requests. The bulk of this change is tap unit test updates to validate
the fix.

Signed-off-by: Andrew Seigner <siggy@buoyant.io>
2019-08-08 09:42:11 -07:00
..
watcher Return invalid argument for external name services (#3120) 2019-07-29 16:31:22 -07:00
client.go Have `linkerd endpoints` use `Destination.Get` (#2990) 2019-07-03 09:11:03 -05:00
endpoint_translator.go Add support for stateful sets (#3113) 2019-07-24 14:09:46 -07:00
endpoint_translator_test.go Add support for stateful sets (#3113) 2019-07-24 14:09:46 -07:00
fallback_profile_listener.go Update ServiceProfile CRD to version v1alpha2 and remove validation (#3078) 2019-07-23 11:46:31 -07:00
fallback_profile_listener_test.go Update ServiceProfile CRD to version v1alpha2 and remove validation (#3078) 2019-07-23 11:46:31 -07:00
profile_translator.go Update ServiceProfile CRD to version v1alpha2 and remove validation (#3078) 2019-07-23 11:46:31 -07:00
profile_translator_test.go Update ServiceProfile CRD to version v1alpha2 and remove validation (#3078) 2019-07-23 11:46:31 -07:00
server.go Return invalid argument for external name services (#3120) 2019-07-29 16:31:22 -07:00
server_test.go Fix invalid `l5d-require-id` for some tap requests (#3210) 2019-08-08 09:42:11 -07:00
traffic_split_adaptor.go Make authorities in destination overrides absolute (#3137) 2019-07-24 17:08:40 -07:00
traffic_split_adaptor_test.go Make authorities in destination overrides absolute (#3137) 2019-07-24 17:08:40 -07:00