Skip to content

Envoy / Istio wasm filter in rust to deleting chosen cookies from request header

License

Notifications You must be signed in to change notification settings

hihellobolke/cookie-delete-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cookie Delete Filter - envoy/istio WASM filter

This can selected cookies from the http request before it reaches the application. You can use the configuration example in envoy.yaml to remove cookies from the request.

Build

  • Install func-e - helps running envoy
  • Example
    cargo build --target wasm32-unknown-unknown --release;
    [[ -e target/wasm32-unknown-unknown/release/cookie_delete_filter.wasm ]] && func-e run --config-path envoy.yaml
    
    # test, by sending cookies, and checking the response headers from httpbin.org/headers
    while true; do
        curl -q -s \
          http://127.0.0.1:8080/headers \
          --header 'cookie: a=1; b=2; remove-this-cookie=no; remove-this-cookie-too=no; c=3' | jq '.headers.Cookie'
    done

About

Envoy / Istio wasm filter in rust to deleting chosen cookies from request header

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published