# Announcing the alpha availability of WebAssembly Plugins

DevFeed: [Announcing the alpha availability of WebAssembly Plugins](<https://devfeed.tech/articles/announcing-the-alpha-availability-of-webassembly-plugins-48743.md>)

Original publisher: [Read original article](<https://istio.io/latest/blog/2021/wasm-api-alpha/>)

Author: Daniel Grimm (Red Hat), Pengyuan Bian (Google), Takeshi Yoneda (Tetrate)

Published: 2021-12-16T00:00:00Z

Content type: release

Language: en

Sources: [Istio](<https://devfeed.tech/sources/istio-blog.md>)

Topics: [WebAssembly](<https://devfeed.tech/topics/web-assembly.md>), [istio](<https://devfeed.tech/topics/istio.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [crd](<https://devfeed.tech/tags/crd.md>), [extensibility](<https://devfeed.tech/tags/extensibility.md>), [gateway](<https://devfeed.tech/tags/gateway.md>), [istio](<https://devfeed.tech/tags/istio.md>), [mesh](<https://devfeed.tech/tags/mesh.md>), [microservices](<https://devfeed.tech/tags/microservices.md>), [release](<https://devfeed.tech/tags/release.md>), [services](<https://devfeed.tech/tags/services.md>), [wasm](<https://devfeed.tech/tags/wasm.md>), [webassembly](<https://devfeed.tech/tags/webassembly.md>)

## AI overview

Istio announces alpha support for WebAssembly extensibility in Istio 1.12, introducing the WasmPlugin API for deploying custom Wasm modules to proxies. The update builds on Proxy-Wasm and earlier module distribution support.

## Source excerpt

Istio 1.9 introduced experimental support for WebAssembly (Wasm) module distribution and a Wasm extensions ecosystem repository with canonical examples and use cases for extension development. Over the past 9 months, the Istio, Envoy, and Proxy-Wasm communities have continued our joint effort to make Wasm extensibility stable, reliable, and easy to adopt, and we are pleased to announce Alpha support for Wasm extensibility in Istio 1.12! In the following sections, we'll walk through the updates that have been made to the Wasm support for the 1.12 release. New WasmPlugin API With the new WasmPlugin CRD in the extensions.istio.io namespace, we're introducing a new high-level API for extending the functionality of the Istio proxy with custom Wasm modules. This effort builds on the excellent work that has gone into the Proxy-Wasm specification and implementation over the last two years. From now on, you no longer need to use EnvoyFilter resources to add custom Wasm modules to your proxies. Instead, you can now use a WasmPlugin resource: apiVersion: extensions.istio.io/v1alpha1 kind: WasmPlugin metadata: name: your-filter spec: selector: matchLabels: app: server phase: AUTHN priority: 10 pluginConfig: someSetting: true someOtherSetting: false youNameIt: - first - second url: docker.io/your-org/your-filter:1.0.0 There are a lot of similarities and a few differences between WasmPlugin and EnvoyFilter, so let's go through the fields one by one. The above example deploys a Wasm module to all workloads (including gateway pods) that match the selector field - this very much works the same as in an EnvoyFilter. The next field below that is the phase. This determines where in the proxy's filter chain the Wasm module will be injected. We have defined four distinct phases for injection: AUTHN: prior to any Istio authentication and authorization filters. AUTHZ: after the Istio authentication filters and before any first-class authorization filters, i.e., before AuthorizationPolicy r