Skip to content

Latest commit

 

History

History
 
 

http_body

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Proxy-Wasm plugin example: HTTP body

Proxy-Wasm plugin that redacts sensitive HTTP responses.

Building

$ cargo build --target wasm32-wasi --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.