mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-04 10:26:40 +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": {
|
||||
"type": "string"
|
||||
},
|
||||
"required_plugin_versions": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/RequiredPluginVersion"
|
||||
}
|
||||
},
|
||||
"macro": {
|
||||
"type": "string"
|
||||
},
|
||||
@ -68,6 +74,9 @@ const char rule_schema_string[] = LONG_STRING_CONST(
|
||||
"priority": {
|
||||
"$ref": "#/definitions/Priority"
|
||||
},
|
||||
"source": {
|
||||
"type": "string"
|
||||
},
|
||||
"exceptions": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -166,6 +175,46 @@ const char rule_schema_string[] = LONG_STRING_CONST(
|
||||
},
|
||||
"minProperties": 1,
|
||||
"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