-
Quick question just looking for some disambiguation. Does "SDK dependent" on the docs mean a function will work everywhere except WASM (opa run + JS SDK), or only with the JS SDK? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
It means it'll only work in wasm if the used SDK provides that implementation. Which ones are there depends on the used SDK. For example, the JS SDK comes with some yaml and json bulletins. |
Beta Was this translation helpful? Give feedback.
-
SDK-dependent has no meaning for rego policies. They fall under the usual backwards and forwards compatibility regime. The same is true for wasm bundles built and used with OPA. They can use any built-in they want, and be treated mentally just like a rego bundle. The incompatibilities only arise when using a wasm SDK. If your policies work with an SDK depends on the (SDK-dependent) built-ins that the SDK provides. |
Beta Was this translation helpful? Give feedback.
SDK-dependent has no meaning for rego policies. They fall under the usual backwards and forwards compatibility regime.
The same is true for wasm bundles built and used with OPA. They can use any built-in they want, and be treated mentally just like a rego bundle.
The incompatibilities only arise when using a wasm SDK. If your policies work with an SDK depends on the (SDK-dependent) built-ins that the SDK provides.