Skip to content

[FR] Add support to decouple actions and exception_list from rules #3405

Closed
@brokensound77

Description

@brokensound77

related to #3298

While the repo technically supports both the actions and exceptions fields within the defined schema, it is not actually practical to populate those fields in any prebuilt rules. This is because it would create a situation where the rules would get out of sync from a versioning perspective and be in the same situation as modifying prebuilt rules.

The easiest solution would be to decouple them completely.

  • Allow users to set directories for actions and exceptions
  • The format would be TOML (or YAML), with the rule_id as the key and an array of entries respectively
  • We would need to “assemble” these at package build time, likely exposing it in the to_api_format method as well as a parameter for building packages
  • We could validate the schema of these structures just like any other rule component
  • We would likely not validate the contents of these structures (valid fields), but could consider it for the future
  • For the build time assembly, we should consider options for multi-tenancy to allow users to maintain and combine unique lists

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions