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,23 @@
{
"eventId": "d4e5f6a7-89ab-cdef-0123-456789abcdef",
"kind": "attestor.logged",
"version": "1",
"tenant": "tenant-01",
"ts": "2025-12-24T13:00:00+00:00",
"actor": "attestor-service",
"payload": {
"attestationId": "attest-001-20251224",
"imageDigest": "sha256:abc123def456789012345678901234567890123456789012345678901234abcd",
"imageName": "registry.example.com/app:v1.0.0",
"predicateType": "https://slsa.dev/provenance/v1",
"logIndex": 12345,
"links": {
"attestation": "https://stellaops.example.com/attestations/attest-001-20251224",
"rekor": "https://rekor.sigstore.dev/api/v1/log/entries?logIndex=12345"
}
},
"attributes": {
"category": "attestor",
"logProvider": "rekor"
}
}

View File

@@ -0,0 +1,24 @@
{
"eventId": "b2c3d4e5-6789-abcd-ef01-23456789abcd",
"kind": "scanner.report.ready",
"version": "1",
"tenant": "tenant-01",
"ts": "2025-12-24T11:00:00+00:00",
"actor": "scanner-worker",
"payload": {
"reportId": "report-001-20251224",
"scanId": "scan-001-20251224",
"imageDigest": "sha256:abc123def456789012345678901234567890123456789012345678901234abcd",
"imageName": "registry.example.com/app:v1.0.0",
"format": "cyclonedx",
"size": 524288,
"links": {
"report": "https://stellaops.example.com/reports/report-001-20251224",
"download": "https://stellaops.example.com/reports/report-001-20251224/download"
}
},
"attributes": {
"category": "scanner",
"reportFormat": "cyclonedx-1.5"
}
}

View File

@@ -0,0 +1,30 @@
{
"eventId": "a1b2c3d4-5678-9abc-def0-123456789abc",
"kind": "scanner.scan.completed",
"version": "1",
"tenant": "tenant-01",
"ts": "2025-12-24T10:30:00+00:00",
"actor": "scanner-worker",
"payload": {
"scanId": "scan-001-20251224",
"imageDigest": "sha256:abc123def456789012345678901234567890123456789012345678901234abcd",
"imageName": "registry.example.com/app:v1.0.0",
"verdict": "pass",
"findingsCount": 7,
"vulnerabilities": {
"critical": 0,
"high": 0,
"medium": 2,
"low": 5
},
"scanDurationMs": 15230,
"links": {
"findings": "https://stellaops.example.com/scans/scan-001-20251224/findings",
"sbom": "https://stellaops.example.com/scans/scan-001-20251224/sbom"
}
},
"attributes": {
"category": "scanner",
"environment": "production"
}
}

View File

@@ -0,0 +1,23 @@
{
"eventId": "c3d4e5f6-789a-bcde-f012-3456789abcde",
"kind": "scheduler.rescan.delta",
"version": "1",
"tenant": "tenant-01",
"ts": "2025-12-24T12:00:00+00:00",
"actor": "scheduler-service",
"payload": {
"scheduleId": "schedule-daily-rescan",
"deltaId": "delta-20251224-1200",
"imagesAffected": 15,
"newVulnerabilities": 3,
"resolvedVulnerabilities": 2,
"links": {
"schedule": "https://stellaops.example.com/schedules/schedule-daily-rescan",
"delta": "https://stellaops.example.com/deltas/delta-20251224-1200"
}
},
"attributes": {
"category": "scheduler",
"scheduleType": "daily"
}
}