Executing .wasm policies using OPA server #293
-
OPA server provides out of the box facility to execute Rego policies. OPA cli provides support to compile Rego policies into .wasm files. Can we use OPA server to execute the .wasm policies? If yes, is there any tutorial documentation for this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
If you use the default images (non-static), then |
Beta Was this translation helpful? Give feedback.
If you use the default images (non-static), then
opa run
is able to work with the bundles built usingopa build -t wasm -e some/entrypoint ...
. Those bundles contain apolicy.wasm
; and there's an SDK in OPA that'll use wasmtime to evaluate them. It should be fairly transparent, but the wasm modules always stay inside bundles. OPA does not accept plain .wasm files.