feat: Add schema check to custom constraints, SCC custom modules, and observability configurations, along with their respective schema definitions. (#3705)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"title": "SCC Mute Configurations",
|
||||
"type": "object",
|
||||
"patternProperties": {
|
||||
"^[a-zA-Z]+$": {
|
||||
"^[a-z]([a-z0-9-]*[a-z0-9])?$": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"filter"
|
||||
@@ -26,4 +26,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,8 +4,12 @@
|
||||
|
||||
## Properties
|
||||
|
||||
- **`^[a-zA-Z]+$`**: *object*
|
||||
- **`^[a-z]([a-z0-9-]*[a-z0-9])?$`**: *object*
|
||||
- **description**: *string*
|
||||
- ⁺**filter**: *string*
|
||||
- **type**: *string*
|
||||
- enum: `DYNAMIC`, `STATIC`
|
||||
|
||||
## Definitions
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"title": "SCC Security Health Analytics Custom Modules",
|
||||
"type": "object",
|
||||
"patternProperties": {
|
||||
"^[a-zA-Z]+$": {
|
||||
"^[a-z][a-zA-Z0-9_]*$": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"predicate",
|
||||
@@ -12,38 +12,38 @@
|
||||
],
|
||||
"properties": {
|
||||
"description": {
|
||||
"type": "string"
|
||||
"type": "string"
|
||||
},
|
||||
"predicate": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"expression"
|
||||
],
|
||||
"properties": {
|
||||
"expression": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
"type": "object",
|
||||
"required": [
|
||||
"expression"
|
||||
],
|
||||
"properties": {
|
||||
"expression": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"recommendation": {
|
||||
"type": "string"
|
||||
"type": "string"
|
||||
},
|
||||
"resource_selector": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"resource_types"
|
||||
],
|
||||
"properties": {
|
||||
"resource_types": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
"type": "object",
|
||||
"required": [
|
||||
"resource_types"
|
||||
],
|
||||
"properties": {
|
||||
"resource_types": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"severity": {
|
||||
"type": "string"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
## Properties
|
||||
|
||||
- **`^[a-zA-Z]+$`**: *object*
|
||||
- **`^[a-z][a-zA-Z0-9_]*$`**: *object*
|
||||
- **description**: *string*
|
||||
- ⁺**predicate**: *object*
|
||||
- ⁺**expression**: *string*
|
||||
|
||||
Reference in New Issue
Block a user