TinyGo example for ATS Wasm Plugin

Coraza Proxy WASM is a WAF wasm filter built on top of Coraza and implementing proxy-wasm ABI

To retrieve plugin.wasm for the Coraza Proxy WASM

  • docker pull ghcr.io/corazawaf/coraza-proxy-wasm:main
  • docker container create ghcr.io/corazawaf/coraza-proxy-wasm:main '/plugin.wasm'
  • docker cp <container id>:/plugin.wasm /usr/local/var/wasm/plugin.wasm

Copy the yaml in this directory to /usr/local/var/wasm/ and activate the plugin in plugin.config

  • wasm.so /usr/local/var/wasm/plugin.yaml

After restarting ATS, any request with perl as the user agent will return a status 403 response.