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
@xuecanlong
once it's specified in ABI, yeah this would be added to Rust SDK for sure. But we haven't reached any consensus yet. So please stay tuned for the ABI update. cc @PiotrSikora
Note that there is really nothing for the Proxy-Wasm spec to define here (well, other than saying that it's allowed, see: #17), since reading environment variables is already defined in the WASI spec.
This actually already works in the Rust SDK (if you compile it for the wasm32-wasi target), but we don't export any variables in Envoy, so the list is empty.
@mathetake if you want to add a key-value map of the variables to export from Envoy, feel free to do it. But this has to be an explicit map (possibly with pass-through for configured values) and not a complete pass-through to the host variables.
@mathetake if you want to add a key-value map of the variables to export from Envoy, feel free to do it. But this has to be an explicit map (possibly with pass-through for configured values) and not a complete pass-through to the host variables.
@mathetake I am very interested on this reading host env feature. So I just reviewed all issues and PR around this topic. But still not very clear about how to use it in real case. Could you give some tips? Such as how to config it in envoy.yaml and how to write the code in the wasm filter in C++?
I actually had tried like this:
in istio envoyfilter.yaml
Unluckily, I got nothing output. So anywrong I did on this? Bwt, is the function support by istio-envoy? and which should the istio version to be at least? Looking forward for your help, thanks in advance.
Activity
xuecanlong commentedon Jan 29, 2021
and do you have plan to support in https://github.com/proxy-wasm/proxy-wasm-rust-sdk ?
mathetake commentedon Jan 29, 2021
@xuecanlong
once it's specified in ABI, yeah this would be added to Rust SDK for sure. But we haven't reached any consensus yet. So please stay tuned for the ABI update. cc @PiotrSikora
xuecanlong commentedon Jan 29, 2021
@mathetake
Thanks, I really need it.
Do we have another way to get
POD_NAMESPACEandPOD DEPLOYMENT NAME?PiotrSikora commentedon Feb 5, 2021
Note that there is really nothing for the Proxy-Wasm spec to define here (well, other than saying that it's allowed, see: #17), since reading environment variables is already defined in the WASI spec.
This actually already works in the Rust SDK (if you compile it for the
wasm32-wasitarget), but we don't export any variables in Envoy, so the list is empty.@mathetake if you want to add a key-value map of the variables to export from Envoy, feel free to do it. But this has to be an explicit map (possibly with pass-through for configured values) and not a complete pass-through to the host variables.
mathetake commentedon Feb 5, 2021
OK, will do. Thanks for clarification here!
mathetake commentedon Feb 5, 2021
Created the issue in Envoy side: envoyproxy/envoy#14958. Please refer there for those who are interested in this feature.
linzg2002 commentedon Dec 27, 2021
@mathetake I am very interested on this reading host env feature. So I just reviewed all issues and PR around this topic. But still not very clear about how to use it in real case. Could you give some tips? Such as how to config it in envoy.yaml and how to write the code in the wasm filter in C++?
I actually had tried like this:
in istio envoyfilter.yaml
in my wasm-filter.cc
Unluckily, I got nothing output. So anywrong I did on this? Bwt, is the function support by istio-envoy? and which should the istio version to be at least? Looking forward for your help, thanks in advance.
capitanFlint129 commentedon May 8, 2022
@linzg2002, it seems to be used like this: