-
Notifications
You must be signed in to change notification settings - Fork 56
Description
As I can see from the documentation and the code, there is no way right now to programatically create and import policies without going through their plain text representation.
Is there any plans (and is it wanted) to be able to craft Modules and import them into the Engine, either through the JSON representation of the AST, or by building the AST ourselves? Or is there already a way to do this I am not seeing?
I figure there are questions of stability of the internal AST, which is why it is not exported right now, and that it is very dependent on Spans, so it would not be a light endeavour, but I am putting it out there.
I realize that the AST is most probably the wrong level of abstraction for what I want to do, which is to retrieve allow to dynamically creating, storing, retrieving and evaluating policies, but was wondering how to do that.