Azure APIM with self-hosted gateway

Bollaert, Igor 17 Reputation points
2020-09-07T14:58:23.103+00:00

We are currently test driving Azure APIM and attempting to set up a self-hosted gateway for connection to on-prem systems.
The gateway deployment on kubernetes went fine and the gateway registered in Azure. From the container's log, we can see the configuration was read correctly and a curl call to the backend system from kubernetes works too. Calling APIs over the gateway however does not work. We have the feeling this is caused by proxy settings. Our proxy server requires authentication and it seems to strand there. The propertie in kubernetes was set to avoid proxy for internal addressess but this doesn't seem to stick to the container. We still strand on the proxy authentication. Is there a way to configure the proxy settings in the container or is there a specific proxy configuration to stick to? We can't really whitelist the kubernetes host because it houses other services that would require the proxy wall to be up.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,447 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ChaitanyaNaykodi-MSFT 27,476 Reputation points Microsoft Employee Moderator
    2020-09-10T06:47:57.207+00:00

    Hello @Anonymous ,
    After having a discussion with the internal product team. To route egress traffic from self-hosted gateway via a proxy you need to configure standard Linux environment variables HTTP_PROXY or HTTPS_PROXY with http://user:pass@hosting :port/ of the proxy.
    Please let me know if the solution provided works or not, I will be glad to continue with our discussion.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.