proxy-wasm / proxy-wasm-cpp-sdk

WebAssembly for Proxies (C++ SDK)
Apache License 2.0
139 stars 67 forks source link

The function proxy_get_configuration() should be removed from the SDK #131

Open mkauf opened 2 years ago

mkauf commented 2 years ago

The function proxy_get_configuration() is not implemented anymore in Envoy. If it's used by a WASM plugin, Envoy prints this error message:

[error][wasm] [source/extensions/common/wasm/wasm_vm.cc:38] Failed to load Wasm module due to a missing import: env.proxy_get_configuration

Therefore the function proxy_get_configuration() should be removed from the SDK.

Note: To get the plugin configuration, use getBufferBytes(WasmBufferType::PluginConfiguration, 0, configuration_size).