Gaps

These features of OPA are not in rego4k, on purpose.

Delta bundles

In OPA, a delta bundle is not a complete bundle: it is a set of changes to the data of a bundle that a running OPA already has. A bundle server sends delta bundles to OPA when the data changes often, so that OPA does not download the whole bundle again.

rego4k is a library, not a server: it has no bundle service and no store of activated bundles. An application that uses rego4k loads a complete bundle, and it can change its data before the evaluation. Thus delta bundles have no use in rego4k.

v0 Rego

rego4k reads only Rego v1. A bundle with rego_version: 0 causes a BundleException.

Deprecated builtins

rego4k does not have the builtins that OPA marks as deprecated: any, all, cast_array, cast_boolean, cast_null, cast_object, cast_set, cast_string, set_diff, re_match and net.cidr_overlap.

Use their replacements, for example: