fix tests. new product advisories enhancements

This commit is contained in:
master
2026-01-25 19:11:36 +02:00
parent c70e83719e
commit 6e687b523a
504 changed files with 40610 additions and 3785 deletions

View File

@@ -0,0 +1,73 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://docs.stella-ops.org/events/attestor.logged@1.json",
"title": "Attestor Logged Event",
"description": "Emitted when an attestation is logged to a transparency log",
"type": "object",
"required": ["eventId", "kind", "version", "tenant", "ts", "payload"],
"properties": {
"eventId": {
"type": "string",
"format": "uuid",
"description": "Unique event identifier"
},
"kind": {
"const": "attestor.logged",
"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": ["attestationId", "imageDigest", "imageName"],
"properties": {
"attestationId": {
"type": "string",
"description": "Unique attestation identifier"
},
"imageDigest": {
"type": "string",
"description": "Image digest (sha256)"
},
"imageName": {
"type": "string",
"description": "Full image name with tag"
},
"predicateType": {
"type": "string",
"description": "In-toto predicate type URI"
},
"logIndex": {
"type": "integer",
"description": "Transparency log index"
},
"links": {
"type": "object",
"properties": {
"attestation": { "type": "string", "format": "uri" },
"rekor": { "type": "string", "format": "uri" }
}
}
}
},
"attributes": {
"type": "object",
"additionalProperties": { "type": "string" }
}
}
}

View File

@@ -0,0 +1,78 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://docs.stella-ops.org/events/scanner.report.ready@1.json",
"title": "Scanner Report Ready Event",
"description": "Emitted when a scan report is generated and ready for download",
"type": "object",
"required": ["eventId", "kind", "version", "tenant", "ts", "payload"],
"properties": {
"eventId": {
"type": "string",
"format": "uuid",
"description": "Unique event identifier"
},
"kind": {
"const": "scanner.report.ready",
"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": ["reportId", "scanId", "imageDigest", "imageName"],
"properties": {
"reportId": {
"type": "string",
"description": "Unique report identifier"
},
"scanId": {
"type": "string",
"description": "Related scan identifier"
},
"imageDigest": {
"type": "string",
"description": "Image digest (sha256)"
},
"imageName": {
"type": "string",
"description": "Full image name with tag"
},
"format": {
"type": "string",
"enum": ["cyclonedx", "spdx", "sarif"],
"description": "Report format"
},
"size": {
"type": "integer",
"description": "Report size in bytes"
},
"links": {
"type": "object",
"properties": {
"report": { "type": "string", "format": "uri" },
"download": { "type": "string", "format": "uri" }
}
}
}
},
"attributes": {
"type": "object",
"additionalProperties": { "type": "string" }
}
}
}

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

View File

@@ -0,0 +1,73 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://docs.stella-ops.org/events/scheduler.rescan.delta@1.json",
"title": "Scheduler Rescan Delta Event",
"description": "Emitted when a scheduled rescan detects vulnerability changes",
"type": "object",
"required": ["eventId", "kind", "version", "tenant", "ts", "payload"],
"properties": {
"eventId": {
"type": "string",
"format": "uuid",
"description": "Unique event identifier"
},
"kind": {
"const": "scheduler.rescan.delta",
"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": ["scheduleId", "deltaId"],
"properties": {
"scheduleId": {
"type": "string",
"description": "Schedule identifier"
},
"deltaId": {
"type": "string",
"description": "Delta report identifier"
},
"imagesAffected": {
"type": "integer",
"description": "Number of images affected"
},
"newVulnerabilities": {
"type": "integer",
"description": "Number of new vulnerabilities detected"
},
"resolvedVulnerabilities": {
"type": "integer",
"description": "Number of resolved vulnerabilities"
},
"links": {
"type": "object",
"properties": {
"schedule": { "type": "string", "format": "uri" },
"delta": { "type": "string", "format": "uri" }
}
}
}
},
"attributes": {
"type": "object",
"additionalProperties": { "type": "string" }
}
}
}