cloudflare / pingora

A library for building fast, reliable and evolvable network services.
Apache License 2.0
21.03k stars 1.16k forks source link

proxy-wasm support #17

Open tkennedy1-godaddy opened 6 months ago

tkennedy1-godaddy commented 6 months ago

What is the problem your feature solves, or the need it fulfills?

Proxy WASM is an spec that allows HTTP filters to be implemented in WASM (supported in Envoy and in-progress for OpenResty).

Describe the solution you'd like

Integration of proxy wasm to pingora to allow for filters built on this spec to operate.

Describe alternatives you've considered

n/a

Additional context

andytesti commented 6 months ago

I'm looking for the same. It seems that a possible implementation may be wrapping a WASM Runtime inside ProxyHttp trait and forward events to WASM modules. Unfortunately there is no TCK (yet) to probe that a proxy-wasm implementation works as expected.

eaufavor commented 6 months ago

This something the ISRG River project will work on. See https://www.memorysafety.org/blog/introducing-river/.

tkennedy1-godaddy commented 6 months ago

That announcement was well timed :)

andytesti commented 6 months ago

A blocker for proxy-wasm support is body modification not being allowed.

artemMartynenko commented 4 months ago

It looks like the blocker issue with body modification is already solved Do you have any plans to implement proxy-wasm in the near time?

darkforest42 commented 1 month ago

looking forward to supporting proxy-wasm