An open API service indexing awesome lists of open source software.

https://github.com/charypar/proxy-wasm-demo

Demo of extending Envoy with WebAssembly filters written in Rust
https://github.com/charypar/proxy-wasm-demo

envoy-filter envoyproxy proxy-wasm rust rust-lang webassembly

Last synced: about 1 year ago
JSON representation

Demo of extending Envoy with WebAssembly filters written in Rust

Awesome Lists containing this project

README

          

# Envoy filter with Rust and WebAssembly

This is a demo accompanying a blogpost about building Envoy filters with Rust and WebAssembly.

## Getting started

1. Install WebAssembly target for rust

```sh
$ rustup update
$ rustup target add wasm32-unknown-unknown
```

2. Install [wasme](https://docs.solo.io/web-assembly-hub/latest/reference/cli/)

```sh
$ curl -sL https://run.solo.io/wasme/install | sh
$ export PATH=$HOME/.wasme/bin:$PATH
```

3. Clone the repo and use the makefile to build and run the demo:

```sh
$ make build-image
$ make deploy-envoy
```

Now you can open . This is proxying to , reflecting request headers back at you. You should see

```
"X-Hello": "Hello world from localhost:8080"
```

which was injected by the filter.