You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
wasm: expose env variables to Wasm VMs through environ_get WASI interface #14958
Reading env variables from inside Wasm VMs are already defined in WASI's environ_get functions, and well supported in various compiler toolchains. However the current implementation of proxy-wasm-cpp-host and envoy does not expose any value to a VM.
There are strong demands from the community for supporting this, and it makes sense to add the new configuration in the Wasm filter's extension to control which variables should be exposed to the Wasm VM.
This is already part of WASI spec (see discussion in proxy-wasm/spec#19). The only missing piece is Envoy implementation and exposing it in the configuration.
Activity
antoniovicente commentedon Feb 8, 2021
cc @PiotrSikora @lizan
antoniovicente commentedon Feb 8, 2021
Do you have a specific proposal in mind? cc'ing other folks involved in WASM integration.
PiotrSikora commentedon Feb 8, 2021
This is already part of WASI spec (see discussion in proxy-wasm/spec#19). The only missing piece is Envoy implementation and exposing it in the configuration.
antoniovicente commentedon Feb 8, 2021
What are the next steps?
PiotrSikora commentedon Feb 8, 2021
Consensus has been reached. @mathetake is already working on it proxy-wasm/proxy-wasm-cpp-host#126.
wasm: add api for configuring environment variable in VmConfig (#15136)