Add min_stack_version to rule metadata (#1173)
* Add min_stack_version to metadata of rule structure
* validate all "stack versions" between defined and current package
* Use master schemas if min_stack_version > current_package
Co-authored-by: Ross Wolf <31489089+rw-access@users.noreply.github.com>
(cherry picked from commit 781953a0a0)
This commit is contained in:
committed by
github-actions[bot]
parent
4d54a87f3c
commit
df8f4af3fc
@@ -215,8 +215,4 @@ def rule_prompt(path=None, rule_type=None, required_only=True, save=True, verbos
|
||||
# rta_mappings.add_rule_to_mapping_file(rule)
|
||||
# click.echo('Placeholder added to rule-mapping.yml')
|
||||
|
||||
click.echo('Rule will validate against the latest ECS schema available (and beats if necessary)')
|
||||
click.echo(' - to have a rule validate against specific ECS schemas, add them to metadata->ecs_versions')
|
||||
click.echo(' - to have a rule validate against a specific beats schema, add it to metadata->beats_version')
|
||||
|
||||
return rule
|
||||
|
||||
Reference in New Issue
Block a user