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:
Liam Nesteroff
2026-02-05 22:20:25 +11:00
committed by GitHub
parent 2af44b0651
commit 9debc3df6f
137 changed files with 1087 additions and 91 deletions

View File

@@ -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 @@
}
}
}
}
}

View File

@@ -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

View File

@@ -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"
}
}
}

View File

@@ -4,7 +4,7 @@
## Properties
- **`^[a-zA-Z]+$`**: *object*
- **`^[a-z][a-zA-Z0-9_]*$`**: *object*
- **description**: *string*
- ⁺**predicate**: *object*
- ⁺**expression**: *string*