mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-05 19:06:44 +00:00
fix(userspace/engine): improve rule json schema to account for source
and required_plugin_versions
.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
parent
6b634df56e
commit
fa701dd52f
@ -35,6 +35,12 @@ const char rule_schema_string[] = LONG_STRING_CONST(
|
|||||||
"required_engine_version": {
|
"required_engine_version": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"required_plugin_versions": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/RequiredPluginVersion"
|
||||||
|
}
|
||||||
|
},
|
||||||
"macro": {
|
"macro": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
@ -68,6 +74,9 @@ const char rule_schema_string[] = LONG_STRING_CONST(
|
|||||||
"priority": {
|
"priority": {
|
||||||
"$ref": "#/definitions/Priority"
|
"$ref": "#/definitions/Priority"
|
||||||
},
|
},
|
||||||
|
"source": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"exceptions": {
|
"exceptions": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
@ -166,6 +175,46 @@ const char rule_schema_string[] = LONG_STRING_CONST(
|
|||||||
},
|
},
|
||||||
"minProperties": 1,
|
"minProperties": 1,
|
||||||
"title": "Override"
|
"title": "Override"
|
||||||
|
},
|
||||||
|
"RequiredPluginVersion": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"version": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"alternatives": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/Alternative"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name",
|
||||||
|
"version"
|
||||||
|
],
|
||||||
|
"title": "RequiredPluginVersion"
|
||||||
|
},
|
||||||
|
"Alternative": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"version": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name",
|
||||||
|
"version"
|
||||||
|
],
|
||||||
|
"title": "Alternative"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user