microsoft / regorus

Regorus - A fast, lightweight Rego (OPA policy language) interpreter written in Rust.
MIT License
130 stars 31 forks source link

Allow ability to introspect AST of policies #265

Closed anakrish closed 3 months ago

anakrish commented 4 months ago

The goal of this issue is to provide a read-only view of the AST of loaded policies. The could for example be accomplished by serializing the AST to JSON. This approach allows keeping the AST data structure private and amenable to change while still retaining the JSON mapping.

CC: @thedavemarshall