- pydantic (default) — evaluates constraints in-process. Zero setup; this is what every example uses.
- WASM — compiles
policy.yaml→ Rego → a WebAssembly module evaluated viawasmtime. This is the path production ships: one compiled artifact, byte-for-byte reproducible, cryptographically signed by the platform.
Building a bundle
The compile step needs theopa binary — see the
hexgate policy CLI.
hexgate policy build produces a directory:
The manifest’s hashes authenticate the files; the signature authenticates the
manifest. Verifying both proves the whole bundle came from the trusted signer,
untampered.