About

August 17, 2023 ยท View on GitHub

Rego compiler which uses interop wrapper for subset of OPA SDK for policy bundle compilation and packaging.

Note. Due to inclusion of native dependencies, nuget OpaDotNet.Compilation.Interop package is ~15MB.

Versions

VersionOPA SDK VersionPlatforms
v1.0.Xv0.55.0linux-x64 win-x64

Example

using OpaDotNet.Compilation.Interop;

var compiler = new RegoInteropCompiler();
var bundleStream = await compiler.CompileFile("example.rego", new[] { "example/hello" });

// Use compiled policy bundle.
...