Docsright arrowEdge Stackright arrowThe Envoy Filter Type (v3alpha1)

3 min • read

The Envoy Filter Type (v3alpha1)

The EnvoyFilter custom resource works in conjunction with the EnvoyFilterPolicy custom resource to define when and how Ambassador Edge Stack modifies or intercepts incoming and outgoing traffic, similar to the Filter resource. EnvoyFilter applies certain Envoy HTTP filter configurations, and you can use it to configure a WebAssembly (Wasm) filter to implement custom logic for your specific needs.

This document provides an overview of all the fields on the EnvoyFilter custom resource, including their purpose, type, and default values. This page is specific to the getambassador.io/v3alpha1 version of the EnvoyFilter resource.

Envoy Filter API Reference

To create an Envoy Filter, the spec.type must be set to EnvoyFilter, and the EnvoyFilter field must contain the configuration for your Envoy filter.

EnvoyFilter

FieldTypeDescription
filterTypeEnumSpecifies the filter type.
wasmWasmFilterContains the configuration for a Wasm filter type.

WasmFilter

Appears On: [EnvoyFilter][]

FieldTypeDescription
filePathstringDefines the path to a .wasm file on the Edge Stack pod filesystem.
failureModeAllowboolWhen set to true, allows requests in the event of a fatal error when running the Wasm filter.
allowPrecompiledWASMboolDetermines whether or not to allow precompiled Wasm files.
customConfigstring(Optional) Passes custom context or configurations to the Wasm filter.
rootIDstringSets the root_id of the virtual machine created for the Wasm filter. The field can't be empty and can only include alphanumeric characters, hyphens, or underscores.
vmIDstringSets the vm_id of the virtual machine created for the Wasm filter. The field can't be empty and can only include alphanumeric characters, hyphens, or underscores.
runtimeEnumSpecifies which of the supported Wasm runtimes to use. The runtime is constrained to known supported runtimes.