Skip to content

Get rid of eval in rule's "then" clause #19

@antisvin

Description

@antisvin

With #15 almost ready, it makes sense to limit all rule's clauses to safe operations. If it's sufficient to leave only math operations and reading from variables, this can be done with a simple parser (should take no more than a day to implement and test).

Or we can keep supporting the old approach with eval and add the new safe mode - allowing rule engine to run unsafe mode only in certain cases (i.e. if all rules would be coming from trusted source).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions