mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-25 23:03:38 +01:00
* feat(plugin): add `proxywasm` plugin The `proxywasm` plugin is a WASM Filter following the ProxyWasm ABI Specification using the proxywasm go sdk This allows extensibility with any reverse proxy who implements the ProxyWasm ABI Specification. The current WASM Filter was successfully tested with APISIX, Envoy, Nginx with ngx_wasm_module from Kong and Istio. Fixes #145
48 lines
1.6 KiB
Markdown
48 lines
1.6 KiB
Markdown
# Envoy Plugin
|
|
|
|
The Envoy Plugin is a WASM Plugin written with the Proxy Wasm SDK.
|
|
|
|
## Provider compatibility grid
|
|
|
|
| Provider | Dynamic | Blocking |
|
|
|-----------------------------------------|:-------:|:--------:|
|
|
| [Docker](/providers/docker) | ✅ | ✅ |
|
|
| [Docker Swarm](/providers/docker_swarm) | ❓ | ❓ |
|
|
| [Kubernetes](/providers/kubernetes) | ❓ | ❓ |
|
|
|
|
## Configuration
|
|
|
|
You can have the following configuration:
|
|
|
|
```yaml
|
|
http_filters:
|
|
- name: sablier-wasm-whoami-dynamic
|
|
disabled: true
|
|
typed_config:
|
|
"@type": type.googleapis.com/udpa.type.v1.TypedStruct
|
|
type_url: type.googleapis.com/envoy.extensions.filters.http.wasm.v3.Wasm
|
|
value:
|
|
config:
|
|
name: "sablier-wasm-whoami-dynamic"
|
|
root_id: "sablier-wasm-whoami-dynamic"
|
|
configuration:
|
|
"@type": "type.googleapis.com/google.protobuf.StringValue"
|
|
value: |
|
|
{
|
|
"sablier_url": "sablier:10000",
|
|
"cluster": "sablier",
|
|
"names": ["docker_classic_e2e-whoami-1"],
|
|
"session_duration": "1m",
|
|
"dynamic": {
|
|
"display_name": "Dynamic Whoami",
|
|
"theme": "hacker-terminal"
|
|
}
|
|
}
|
|
vm_config:
|
|
runtime: "envoy.wasm.runtime.v8"
|
|
vm_id: "vm.sablier.sablier-wasm-whoami-dynamic"
|
|
code:
|
|
local:
|
|
filename: "/etc/sablierproxywasm.wasm"
|
|
configuration: { }
|
|
``` |