The user is running Kong in an internal environment and must go through a proxy to access OIDC IdP URLs as below:
When setting up http_proxy to proxy as config.http_proxy: <proxy_ip>:<proxy_port> in the OIDC plugin, the user gets DNS resolution errors as below:
[openid-connect] loading configuration for https://<IDP_HOST>/auth/realms/demo using discovery, client: 172.26.0.4, server: kong, request: "GET /test HTTP/1.1", host: "kong-ee:8000"
2026/05/07 02:13:20 [notice] 25#0: *23541 [lua] cache.lua:258: discover(): [openid-connect] loading configuration for https://<IDP_HOST>/auth/realms/demo using discovery failed: [cosocket] DNS resolution failed: dns lookup pool exceeded retries (1): timeout. Tried: ["(short)<IDP_HOST>:(na) - cache-miss","<IDP_HOST>:33 - cache-miss/scheduled/querying/try 1 error: timeout/scheduled/querying/try 2 error: timeout/dns lookup pool exceeded retries (1): timeout","<IDP_HOST>:1 - cache-miss/scheduled/querying/try 1 error: timeout/scheduled/querying/try 2 error: timeout/dns lookup pool exceeded retries (1): timeout","<IDP_HOST>:5 - cache-miss/scheduled/querying/try 1 error: timeout/scheduled/querying/try 2 error: timeout/dns lookup pool exceeded retries (1): timeout"] (falling back to previous configuration), client: 172.26.0.4, server: kong, request: "GET /test HTTP/1.1", host: "kong-ee:8000"