Wasm
Package: wasm.options.gloo.solo.io
Types:
Source File: github.com/solo-io/gloo/projects/gloo/api/v1/options/wasm/wasm.proto
PluginSource
Options config for WASM filters
"filters": []wasm.options.gloo.solo.io.WasmFilter
Field | Type | Description |
---|---|---|
filters |
[]wasm.options.gloo.solo.io.WasmFilter | list of WASM filters to be added into the filter chain. |
WasmFilter
This message defines a single Envoy WASM filter to be placed into the filter chain
"image": string
"filePath": string
"config": .google.protobuf.Any
"filterStage": .wasm.options.gloo.solo.io.FilterStage
"name": string
"rootId": string
"vmType": .wasm.options.gloo.solo.io.WasmFilter.VmType
"failOpen": bool
Field | Type | Description |
---|---|---|
image |
string |
name of image which houses the compiled wasm filter. Only one of image or filePath can be set. |
filePath |
string |
path from which to load wasm filter from disk. Only one of filePath or image can be set. |
config |
.google.protobuf.Any | Filter/service configuration used to configure or reconfigure a plugin (proxy_on_configuration). google.protobuf.Struct is serialized as JSON before passing it to the plugin. google.protobuf.BytesValue and google.protobuf.StringValue are passed directly without the wrapper. |
filterStage |
.wasm.options.gloo.solo.io.FilterStage | the stage in the filter chain where this filter should be placed. |
name |
string |
the name of the filter, used for logging. |
rootId |
string |
the root_id of the filter which should be run, if this value is incorrect, or empty the filter will crash. |
vmType |
.wasm.options.gloo.solo.io.WasmFilter.VmType | selected VM type. |
failOpen |
bool |
when true, bypass the filter if there is a fatal error on the VM; defaults to false. |
VmType
represents the different types of WASM VMs available with which envoy can run the WASM filter module
Name | Description |
---|---|
V8 |
|
WAVM |
FilterStage
"stage": .wasm.options.gloo.solo.io.FilterStage.Stage
"predicate": .wasm.options.gloo.solo.io.FilterStage.Predicate
Field | Type | Description |
---|---|---|
stage |
.wasm.options.gloo.solo.io.FilterStage.Stage | stage of the filter chain in which the selected filter should be added. |
predicate |
.wasm.options.gloo.solo.io.FilterStage.Predicate | How this filter should be placed relative to the stage. |
Stage
list of filter stages which can be selected for a WASM filter
Name | Description |
---|---|
FaultStage |
|
CorsStage |
|
WafStage |
|
AuthNStage |
|
AuthZStage |
|
RateLimitStage |
|
AcceptedStage |
|
OutAuthStage |
|
RouteStage |
Predicate
During is the 0th member so that it is the default, even though the reading order can be a little confusing
Name | Description |
---|---|
During |
|
Before |
|
After |