pojntfx/unisockets

not working in the envoy

Opened this issue · 0 comments

due to the issue, I managed to build it with tinygo 0.17.0, and it's succeed.

build command:

tinygo build -o build/socket.wasm -target=wasi -wasm-abi=generic -cflags "-DUNISOCKETS_WITH_CUSTOM_ARPA_INET" .

but, it's failed running in Istio with the proxy of envoy:

2021-08-16T02:52:42.942205Z	error	envoy wasm	Failed to load Wasm module due to a missing import: env.unisockets_socket
2021-08-16T02:52:42.942234Z	error	envoy wasm	Failed to load Wasm module due to a missing import: env.unisockets_connect
2021-08-16T02:52:42.942238Z	error	envoy wasm	Failed to load Wasm module due to a missing import: env.unisockets_send
2021-08-16T02:52:42.942240Z	error	envoy wasm	Failed to load Wasm module due to a missing import: env.unisockets_recv
2021-08-16T02:52:42.942247Z	error	envoy wasm	Wasm VM failed Failed to initialize Wasm code
2021-08-16T02:52:42.942772Z	critical	envoy wasm	Plugin configured to fail closed failed to load
2021-08-16T02:52:42.942787Z	critical	envoy wasm	Plugin configured to fail closed failed to load
2021-08-16T02:52:42.942793Z	critical	envoy wasm	Plugin configured to fail closed failed to load
2021-08-16T02:52:42.965088Z	warning	envoy config	gRPC config for type.googleapis.com/envoy.config.listener.v3.Listener rejected: Error adding/updating listener(s) 10.107.169.228_9091: Unable to create Wasm network filter tcp-socket-replace