deislabs / wagi

Write HTTP handlers in WebAssembly with a minimal amount of work
Apache License 2.0
890 stars 44 forks source link

Add support for outbound HTTP #33

Closed radu-matei closed 3 years ago

radu-matei commented 3 years ago

This PR adds initial support for outbound HTTP requests from guest modules running in WAGI using https://github.com/deislabs/wasi-experimental-http.

As part of this PR, Wasmtime is also updated to 0.24.

ref #14

radu-matei commented 3 years ago

I am unsure if we should merge this in the current state. Particularly, this has to do with the way we allow the hosts that guest modules are allowed to make requests to. Currently, if no allowed_hosts has been passed, guest modules are allowed to make requests to any server, which might be counter-intuitive (and actually opposed to every other capability in both WAGI and upstream WASI).

Tracking this in https://github.com/deislabs/wasi-experimental-http/issues/37 as well.

radu-matei commented 3 years ago

Addressed this in https://github.com/deislabs/wasi-experimental-http/pull/39. Once that is merged and a new crate version is published, I will update this PR.