We currently have Consul as our discovery service and are trying to get Tyk to talk to Consul for discovery of upstream services. Consul expects a header “X-Consul-Token” in the request. Is there a way to pass it in the Tyk API configuration JSON? Below is the service discovery part of the JSON:
Thanks Leon, that works for now, though we need to see the security implications.
In continuation to the above question, once Tyk gets the endpoint details of an upstream service from Consul, the call to the upstream service is made with HTTP protocol while the service expects HTTPS with a specific header. I could not find any configurations in the service discovery documentation related to this. Am I missing something?