Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 675 Bytes

File metadata and controls

36 lines (24 loc) · 675 Bytes

Proxy-Wasm plugin example: HTTP body

Proxy-Wasm plugin that redacts sensitive HTTP responses.

Building

$ cargo build --target wasm32-wasip1 --release

Using in Envoy

This example can be run with docker compose and has a matching Envoy configuration.

$ docker compose up

Response without secrets.

Send HTTP request to localhost:10000/hello:

$ curl localhost:10000/hello
Everyone may read this message.

Response with (redacted) secrets.

Send HTTP request to localhost:10000/secret:

$ curl localhost:10000/secret
Original message body (50 bytes) redacted.