Skip to content

Antaeus v0.5.0

Choose a tag to compare

@github-actions github-actions released this 28 Sep 05:24
· 5 commits to main since this release
8cdae6f

Adds an experimental WebAssembly build of the engine, so JavaScript hosts such
as Cloudflare Workers, browsers, and Node.js can evaluate policies with the
same engine as the CLI, without running it in a container. Remote evaluators
such as the hosted Drex API are called through the host's fetch. The build
ships as antaeus_0.5.0_js_wasm.tar.gz in this release, covered by
SHA256SUMS and build-provenance attestations. Its interface (version 1) may
still change in a minor release before v1.0.0, and its CPU, startup time, and
memory use have not yet been measured on Cloudflare's production runtime. The
CLI, native archives, and container image behave as in v0.4.0.

Install with brew install antaeusio/tap/antaeus (or brew upgrade antaeus),
go install github.com/antaeusio/antaeus/cmd/antaeus@v0.5.0,
docker pull ghcr.io/antaeusio/antaeus:0.5, or an archive from this release.
See docs/webassembly.md for the WebAssembly build.

Added

  • Experimental WebAssembly build of the engine for JavaScript hosts such as Cloudflare Workers, browsers, and Node.js: antaeus_<version>_js_wasm.tar.gz in each release, built with scripts/build-wasm. start() from its antaeus.mjs returns JSON validate and evaluate calls (interface version 1) that take credentials and an optional absolute deadline per call and return the same Decisions as the CLI. Each call runs in a fresh engine instance entered only from its own request's context, which keeps Cloudflare Workers from cancelling one request's timers and I/O on behalf of another; concurrent instances are capped, waiting calls are bounded (host.busy beyond 16 calls or 16 MiB) and settle at their own deadline. Remote evaluators use the host's fetch without following redirects and stream response bodies; unexpected host values become provider failures rather than stopping the engine. See docs/webassembly.md.