fix tests. new product advisories enhancements
This commit is contained in:
87
docs/events/scanner.scan.completed@1.json
Normal file
87
docs/events/scanner.scan.completed@1.json
Normal file
@@ -0,0 +1,87 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"$id": "https://docs.stella-ops.org/events/scanner.scan.completed@1.json",
|
||||
"title": "Scanner Scan Completed Event",
|
||||
"description": "Emitted when a container image scan completes",
|
||||
"type": "object",
|
||||
"required": ["eventId", "kind", "version", "tenant", "ts", "payload"],
|
||||
"properties": {
|
||||
"eventId": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "Unique event identifier"
|
||||
},
|
||||
"kind": {
|
||||
"const": "scanner.scan.completed",
|
||||
"description": "Event kind"
|
||||
},
|
||||
"version": {
|
||||
"const": "1",
|
||||
"description": "Schema version"
|
||||
},
|
||||
"tenant": {
|
||||
"type": "string",
|
||||
"description": "Tenant identifier"
|
||||
},
|
||||
"ts": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"description": "Event timestamp in ISO 8601 format"
|
||||
},
|
||||
"actor": {
|
||||
"type": "string",
|
||||
"description": "Service or user that triggered the event"
|
||||
},
|
||||
"payload": {
|
||||
"type": "object",
|
||||
"required": ["scanId", "imageDigest", "imageName", "verdict"],
|
||||
"properties": {
|
||||
"scanId": {
|
||||
"type": "string",
|
||||
"description": "Unique scan identifier"
|
||||
},
|
||||
"imageDigest": {
|
||||
"type": "string",
|
||||
"description": "Image digest (sha256)"
|
||||
},
|
||||
"imageName": {
|
||||
"type": "string",
|
||||
"description": "Full image name with tag"
|
||||
},
|
||||
"verdict": {
|
||||
"type": "string",
|
||||
"enum": ["pass", "fail"],
|
||||
"description": "Scan verdict"
|
||||
},
|
||||
"findingsCount": {
|
||||
"type": "integer",
|
||||
"description": "Total number of findings"
|
||||
},
|
||||
"vulnerabilities": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"critical": { "type": "integer" },
|
||||
"high": { "type": "integer" },
|
||||
"medium": { "type": "integer" },
|
||||
"low": { "type": "integer" }
|
||||
}
|
||||
},
|
||||
"scanDurationMs": {
|
||||
"type": "integer",
|
||||
"description": "Scan duration in milliseconds"
|
||||
},
|
||||
"links": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"findings": { "type": "string", "format": "uri" },
|
||||
"sbom": { "type": "string", "format": "uri" }
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"attributes": {
|
||||
"type": "object",
|
||||
"additionalProperties": { "type": "string" }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user