-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Envrionment Variables always blank #170
Comments
Are you building it against |
let me check im using wasm-pack , after a little research it seems that im not using that rustwasm/wasm-pack#654 Wasm pack does not use this target so this makes sense that the wasi_get_environ binding is not present. ill try to followup with some docs explaining this on this repo |
Is there any reason for using |
To get this working without building with |
This works fine as far as I can tell. Using Envoy 1.26 the following works as expected:
And this bit of code:
You will either get your string as expected, or a blank string and a nice warning in your WASM log. This is using:
When implementing in Istio using
|
You can also load Configuration in the plugin insteaf of the VM: http_filters:
- name: envoy.filters.http.wasm
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.wasm.v3.Wasm
config:
name: "oidc-wasm-plugin"
configuration:
"@type": "type.googleapis.com/google.protobuf.StringValue"
value: |
value1: 1 Then in the RootContext, you can use |
Are Env vars suported in this?
here is my envoy yaml
Here is the Rust code
the variable is always none.
I am using precompiled wasm , meaning i use wasm pack and throw it into the envoy container
The text was updated successfully, but these errors were encountered: