-
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
Question: Access a directory through a running Wasm plugin #202
Comments
This is on the roadmap (see: envoyproxy/envoy#22557, proxy-wasm/proxy-wasm-cpp-host#127), but it's not implemented yet. As for the workaround for accessing Envoy's configuration, you might want to use HTTP callouts to access the admin port and fetch config from there. It will include dynamic parts as well, whereas local file will not. |
Thanks for the reply @PiotrSikora . Just to confirm if I understood correctly. About your suggestion, would it be to use Thanks in advance |
Did you look at examples/http_config? Does it address your use case? |
Yes, I already knew the example. I use the feature of capturing the settings defined in the envoy.yaml file via We use a WasmService plugin that every 30-60 seconds grabs a new configuration and updates the Initially we were getting the configuration via http request using |
@aleksousa If you want to use |
@antonengelhardt, Initially we were using Using a request to the Envoy admin to update the configuration and using We managed to do this by adding the configuration file in json format to AWS S3, and calling |
Thanks for the help. |
Did you consider using ECDS to update only Proxy-Wasm plugin's configuration and not "complete" envoy.yaml, or is that also not possible due to security rules? In any case, the read-only file access is expected to be available in the foreseeable future (Q4-ish?), but that's probably better tracked in one of the linked host-side issues, since there are no changes in the SDK required to support it, the only missing parts are on the host side. |
Good morning @PiotrSikora . I reopened the issue because I hadn't seen your response, but I still have a question. Does ECDS work for WasmServices? From what I saw in Envoy, there is still no ECDS support for |
Hello everybody. I'm a beginner in Rust and Wasm, so this doubt can be something very simple.
During the execution of my plugin, I'm trying to access a directory to search for a configuration, which is constantly being updated, but the code presents the following error message.
This is the snippet of my code that tries to access the file:
and this is the command I'm using to generate wasm:
is this a possible operation today in proxy-wasm? If so, would anyone know how to help me?
Tks.
The text was updated successfully, but these errors were encountered: