-
Notifications
You must be signed in to change notification settings - Fork 97
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
Retrieve DynamicMetadata #52
Comments
You can read dynamic metadata, e.g. see https://github.com/istio/proxy/blob/master/extensions/common/context.cc#L103. There is no way to write metadata right now, since the implementation relies on filter state instead. We found protobuf-backed metadata was too costly for exchanging data between Wasm filters. |
I'm trying, but it didn't work, should be like this, no?
It is always null :\ |
I think the path should be |
Ok, gotcha! I got it working, thanks for the clarification, with the following code works:
And here the call on rust code:
Many thanks, closing! |
Hi!
Checking how can I modify/get values from DynamicMetadata, and I did not found a way to retrieve it using Wasm plugin.
The list of filters that are using this feature are the following:
https://www.envoyproxy.io/docs/envoy/latest/configuration/advanced/well_known_dynamic_metadata
An example code that writes this is the following:
https://github.com/envoyproxy/envoy/blob/master/source/extensions/filters/http/jwt_authn/filter.cc#L103-L105
I have tried with get_properties/get_shared_data functions, but I was not able to get any result. I can get/set the information using Lua filter. Checking the wasm code and all proxy_wasm projects, I cannot see any reference to this.
My idea is to use something like FFI, but I'm not sure that can be possible at all:
https://github.com/proxy-wasm/spec/tree/master/abi-versions/vNEXT#foreign-function-interface-ffi
Is there any way to retrieve this information?
Regards.
The text was updated successfully, but these errors were encountered: