Repository navigation
function-wasm 1.1.0 moves the runtime to Wasmtime 51.0.0 and function-sdk-rust 0.6.0. Wasmtime 51.0.0 fixes a crash that a module could cause on 1.0.0 to 1.0.2 by declaring a function subtype, so an installation that runs modules it doesn't fully trust should upgrade. The runtime also answers RunFunction with UNAVAILABLE until warm-up ends. The Input, the flags, the manifest and the world are unchanged.
Before you upgrade
From 1.0.0 or 1.0.1, read "Before you upgrade" in the notes of the releases you skip, 1.0.1 and 1.0.2: 1.1.0 contains their fixes and the checks they added.
Check modules that keep dozens of async operations in flight. Wasmtime 51 limits the fibers alive at once in a store to 64 by default (Wasmtime #14971), and Wasmtime 50 had no limit. A fiber backs guest code that Wasmtime calls asynchronously, as the runtime calls run, and the component model's async primitives use more. The runtime keeps the default and gives each run a store of its own, so a run that needs more fibers ends in a fatal result with Wasmtime's store limit of fibers has been reached. The go, python, rust and ts scaffolds pass the guest suite under the limit unchanged.
Security
A module could crash the runtime process
function-wasm 1.0.0 to 1.0.2 link Wasmtime 50.0.1, built without its gc feature. Such a build still accepts the function subtypes of the GC proposal, but the builtin that checks a function against a subtype at run time is a stub that panics, and a panic in compiled code can't unwind. A call_indirect that finds a function of a declared subtype in its table makes that check, and so do the casts the GC proposal adds. The crash ends every request the pod is serving, and a module doesn't need a grant to cause it. Wasmtime 51.0.0 has a working check in every build, and the engine now refuses function subtypes at compile as well (GHSA-rc4p-x33f-vpr2, #432, #435).
Advisories that don't affect function-wasm
Wasmtime 51.0.0 also fixes these advisories against 50.0.1:
| Advisory | Why function-wasm isn't affected |
|---|---|
| GHSA-5m8g-xhq4-4h93 | A module's stdout and stderr are the host's own, which wasmtime-wasi writes without AsyncWriteStream. |
| GHSA-f8mm-ggr3-89wh | The runtime reads a request body whole and sends it with its own client, which isn't built with HTTP/2. wasmtime-wasi-http's sender is compiled out. |
| GHSA-43j2-gcp4-m22g | GC types are compiled out, and no host function hands a module a GC reference. |
| GHSA-wvgq-g5hf-6gm6 | The runtime keeps Wasmtime's default memory reservation. |
| GHSA-2674-w29h-wqvj | The threads proposal is never enabled. |
| GHSA-xrvr-8678-5wp8 | The runtime never passes a stream or future from one component instance to another. |
| GHSA-hj27-mpw9-ff4c | It affects core modules, and the runtime runs components. |
| GHSA-f2pq-268w-886c | It affects Windows hosts, and the image is Linux. |
For operators
RunFunction waits for warm-up
With --warm-modules set, the runtime listens at once and loads the listed modules before it reports ready. 1.0.2 served a RunFunction call that arrived in that time cold. 1.1.0 answers it with UNAVAILABLE (the function is not ready) and runs nothing, so Crossplane fails that reconcile of the composite resource and tries again later. Crossplane's function Deployment has no readiness probe by default. Until a DeploymentRuntimeConfig adds one on /readyz, a composite resource can show rpc error: code = Unavailable desc = the function is not ready while a new pod warms up (Readiness, #422).
Each request is decoded and encoded whole
The runtime now decodes the request and the module's response into the SDK's messages and encodes both again. 1.0.2 decoded them too, but passed on the bytes it had received. Encoding adds host time that grows with the number of composed resources a request has. The difference against 1.0.2 isn't measured (#422).
Large policies and compiled artifacts cost less
A new compositionPolicy compiles outside the lock of the cache that keeps compiled policies, so requests with another policy no longer wait for it: a 200-rule policy takes about 50 ms to compile (#384). The runtime checks a compiled artifact read from disk through a 64 KiB buffer, and no longer reads the whole artifact into memory to check it (#377).
A failed load is retried by one request
After a module failed to load, the requests waiting on that load and a request arriving meanwhile could each fetch and compile the module. One request at a time now retries a failed load, and the others wait for it (#384).
A quantity whose fraction overflows is refused
A limits.memory whose fraction overflowed when multiplied by its suffix wrapped around in a release build, to a value admission still held to --module-memory-limit. The runtime now refuses it with limits.memory "…" is not a valid quantity, and refuses a limits.timeout whose fraction overflows with limits.timeout "…" is not a valid duration (#384).
The timeout outcome of the run histogram
guestfn_module_run_duration_seconds counted a run under timeout when its error contained the deadline sentence, which a module could return in an error of its own. The outcome now comes from how the run ended (Metrics, #384).
For module authors
The runtime re-encodes the request and the response
In 1.0.x, docs/abi-v2.md promised that the host passes the caller's request bytes to run and returns the module's response bytes verbatim. 1.1.0 withdraws that promise: the runtime decodes both and encodes them again. A module receives every field it did before, including fields newer than the runtime's copy of the proto, and can't depend on the layout of the bytes (ABI v2, #422).
Function subtypes and typed function references are refused
docs/abi-v2.md has said since 1.0.0 that the engine refuses GC and function references at compile. The engine didn't: with the gc crate feature off, Wasmtime still accepted function subtypes and call_ref. 1.1.0 switches both proposals off, so a module that uses either fails with cannot compile module: …, as the documentation says. No scaffold or example uses them (ABI v2, #435).
World, Wasmtime and WASI versions
Serves guestfn:function@1.0.0 on Wasmtime 51.0.0: WASI 0.2.12 (cli, clocks, http, io) for the sync scaffolds and WASI 0.3.0 (cli, clocks, http) for the rust scaffold. The world and the WASI versions haven't moved since 1.0.0.
Merged pull requests
- chore(guestfn): prepare the v0.2.0 release by @jonasz-lasut in #345
- docs: tested versions of function-wasm-v1.0.0 by @jonasz-lasut in #347
- ci: run the guest and VM suites in the CI workflow by @jonasz-lasut in #348
- ci(e2e): select scenarios with labels by @jonasz-lasut in #349
- chore(renovate): label pull requests e2e:all by @jonasz-lasut in #350
- chore(deps): update dependency dotnet-sdk to v11 by @renovate[bot] in #342
- ci: keep e2e-gate in progress, read-only CI token by @jonasz-lasut in #351
- chore(renovate): auto-merge small updates by @jonasz-lasut in #352
- fix(wasm): bound run wall clock and request body by @jonasz-lasut in #354
- fix(oci): bound the process output a run keeps by @jonasz-lasut in #356
- ci(release): guard the publish workflows by @jonasz-lasut in #355
- fix(oci): bound and correct layer unpacking by @jonasz-lasut in #358
- fix: keep signature verdicts per repository, one registry spelling by @jonasz-lasut in #357
- fix: harden egress, listeners and downloads by @jonasz-lasut in #359
- fix: bound registry reads, apply a forbid of any by @jonasz-lasut in #360
- chore(deps): update cgr.dev/chainguard/glibc-dynamic:latest docker digest to 4cefd4a by @renovate[bot] in #361
- fix(oci): hold loaded rootfs, harden guest mounts by @jonasz-lasut in #362
- docs(wasm): name function-wasm v1.0.1 in installs by @jonasz-lasut in #363
- docs: tested versions of function-wasm-v1.0.1 by @jonasz-lasut in #364
- ci: bound jobs, seed caches by change, track pins by @jonasz-lasut in #365
- test(runtime): cover untested refusals and bounds by @jonasz-lasut in #368
- test: close gaps in the harness and the OCI suites by @jonasz-lasut in #366
- fix: tighten source and timeout checks by @jonasz-lasut in #369
- chore(deps): pin jonasz-lasut/guestfn action to 0e358dd by @renovate[bot] in #370
- perf(store): stream the compiled artifact's MAC by @jonasz-lasut in #377
- perf(runtime): make a warm request cheaper by @jonasz-lasut in #378
- chore(deps): update golang docker tag to v1.27.4 by @renovate[bot] in #372
- chore(deps): update dependency odin-lang/odin to dev-2026-11 by @renovate[bot] in #373
- chore(deps): update dependency protocolbuffers/protobuf to v36 by @renovate[bot] in #375
- docs(wasm): follow up the v1.0.2 release by @jonasz-lasut in #379
- ci: ignore protobuf generator versions in drift by @jonasz-lasut in #380
- chore(deps): update dependency nanopb to v0.4.9.3 by @renovate[bot] in #371
- fix(renovate): stop tracking the up CLI by @jonasz-lasut in #383
- fix(renovate): stop tracking Zig by @jonasz-lasut in #385
- refactor: six small fixes across the runtime by @jonasz-lasut in #384
- chore(deps): update wit-bindgen to v0.63.0 by @renovate[bot] in #374
- fix(ci): call the signing workflow at main by @jonasz-lasut in #386
- perf(oci): shorten what a caller waits for a run by @jonasz-lasut in #382
- docs: bring the pages in line with main by @jonasz-lasut in #389
- docs(oci): name function-oci v0.3.0 in the example by @jonasz-lasut in #387
- chore(guestfn): prepare the v0.3.0 release by @jonasz-lasut in #388
- docs: say what a patch release may change by @jonasz-lasut in #390
- docs: tested versions of function-oci-v0.3.0 by @jonasz-lasut in #394
- chore(deps): update rust crate prost-types to v0.14.5 by @renovate[bot] in #395
- chore(deps): update dependency bytecodealliance/wasm-pkg-tools to v0.16.2 by @renovate[bot] in #396
- chore(deps): update rust crate prost-types to v0.14.6 by @renovate[bot] in #397
- chore(deps): update cgr.dev/chainguard/glibc-dynamic:latest docker digest to a5e9991 by @renovate[bot] in #398
- chore(deps): update rust crate jiff to v0.2.44 by @renovate[bot] in #399
- chore(deps): lock file maintenance by @renovate[bot] in #353
- chore(deps): update embarkstudios/cargo-deny-action action to v2.1.2 by @renovate[bot] in #401
- chore(deps): update cgr.dev/chainguard/glibc-dynamic:latest docker digest to 48ce6d7 by @renovate[bot] in #400
- chore(deps): ignore chrono advisory in cargo-deny by @jonasz-lasut in #408
- docs: shorten the agent guide and add CONTRIBUTING by @jonasz-lasut in #407
- chore(renovate): gate the WASI comment bump by age by @jonasz-lasut in #410
- ci: skip CI for Vale and Renovate config changes by @jonasz-lasut in #411
- chore(deps): update module sigs.k8s.io/controller-runtime to v0.25.3 by @renovate[bot] in #402
- chore(deps): correct the chrono ignore comment by @jonasz-lasut in #414
- chore(deps): update dependency wasmtime-wasi-http to v50.0.2 by @renovate[bot] in #404
- feat(guestfn): write the current function release by @jonasz-lasut in #415
- fix(oci): keep the init's exit report whole by @jonasz-lasut in #413
- chore(deps): update cgr.dev/chainguard/glibc-dynamic:latest docker digest to a49f6f6 by @renovate[bot] in #406
- chore(deps): update rust by @renovate[bot] in #405
- ci: lint the shell scripts and the workflows by @jonasz-lasut in #416
- chore(deps): update actions/setup-go action to v7.1.0 by @renovate[bot] in #419
- chore(deps): update dependency renovate to v44.253.0 by @renovate[bot] in #420
- chore(deps): update examples by @renovate[bot] in #417
- refactor(runtime): forward the SDK's messages by @jonasz-lasut in #422
- refactor(engine): take the SDK's messages by @jonasz-lasut in #423
- chore(deps): update cgr.dev/chainguard/glibc-dynamic:latest docker digest to 3359c6b by @renovate[bot] in #425
- chore(deps): update rust to v4.15.0 by @renovate[bot] in #418
- chore(deps): update vale by @renovate[bot] in #426
- chore(deps): update wasmtime to v51 by @renovate[bot] in #432
- chore(deps): update dependency renovate to v44.256.1 by @renovate[bot] in #431
- chore(deps): update rust by @renovate[bot] in #428
- chore(deps): update github-actions by @renovate[bot] in #429
- docs(oci): name function-oci v0.4.0 in the example by @jonasz-lasut in #433
- docs(wasm): name function-wasm v1.1.0 in installs by @jonasz-lasut in #434
- fix(engine-wasm): refuse GC and function references by @jonasz-lasut in #435
Full Changelog: function-wasm-v1.0.2...function-wasm-v1.1.0