Kong/ngx_wasm_module

Update our Lua bridge resolver to use the new Kong DNS resolver

Open

#574 opened on Jul 16, 2024

 (3 comments) (0 reactions) (1 assignee)C (16 forks)auto 404
area/lua-bridgeenhancementgood first issue

Repository metrics

Stars
 (140 stars)
PR merge metrics
 (PR metrics pending)

Description

See the new DNS resolver library enabled on-demand in Kong 3.x series: https://github.com/Kong/kong/pull/12305

And our invocation of the Kong resolver from Wasm filters: https://github.com/Kong/ngx_wasm_module/blob/prerelease-0.4.0/src/common/lua/ngx_wasm_lua_resolver.c#L45-L71

We will need to update our Lua code to use the appropriate resolver depending on Kong's configuration.

Contributor guide