WasmtimePreview3ComponentConfig
Configuration for running a precompiled WASI Preview 3 component through the Wasmtime bridge.
Trust boundary for precompiled artifacts
precompiledComponentBytes is a serialized Wasmtime component artifact. The bridge deserializes it with Wasmtime's unsafe deserialization API, so these bytes are equivalent to native code running in the host process: a crafted artifact bypasses maxFuel, maxMemoryBytes, networkPolicy and the filesystem preopens. The bridge has no path that compiles a component from validated .wasm bytes, so the host alone is responsible for producing the artifact with a trusted, pinned Wasmtime toolchain (for example wasmtime compile) from a component it has validated, and for storing it where plugins cannot write. Never accept precompiled component bytes from a plugin bundle or from an untrusted network location.