Skip to content

Create policies programatically #594

@apognu

Description

@apognu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions