- Added `MongoAdvisoryObservationEventPublisher` and `NatsAdvisoryObservationEventPublisher` for event publishing. - Registered `IAdvisoryObservationEventPublisher` to choose between NATS and MongoDB based on configuration. - Introduced `MongoAdvisoryObservationEventOutbox` for outbox pattern implementation. - Updated service collection to include new event publishers and outbox. - Added a new hosted service `AdvisoryObservationTransportWorker` for processing events. feat: Update project dependencies - Added `NATS.Client.Core` package to the project for NATS integration. test: Add unit tests for AdvisoryLinkset normalization - Created `AdvisoryLinksetNormalizationConfidenceTests` to validate confidence score calculations. fix: Adjust confidence assertion in `AdvisoryObservationAggregationTests` - Updated confidence assertion to allow a range instead of a fixed value. test: Implement tests for AdvisoryObservationEventFactory - Added `AdvisoryObservationEventFactoryTests` to ensure correct mapping and hashing of observation events. chore: Configure test project for Findings Ledger - Created `Directory.Build.props` for test project configuration. - Added `StellaOps.Findings.Ledger.Exports.Unit.csproj` for unit tests related to findings ledger exports. feat: Implement export contracts for findings ledger - Defined export request and response contracts in `ExportContracts.cs`. - Created various export item records for findings, VEX, advisories, and SBOMs. feat: Add export functionality to Findings Ledger Web Service - Implemented endpoints for exporting findings, VEX, advisories, and SBOMs. - Integrated `ExportQueryService` for handling export logic and pagination. test: Add tests for Node language analyzer phase 22 - Implemented `NodePhase22SampleLoaderTests` to validate loading of NDJSON fixtures. - Created sample NDJSON file for testing. chore: Set up isolated test environment for Node tests - Added `node-isolated.runsettings` for isolated test execution. - Created `node-tests-isolated.sh` script for running tests in isolation.
69 lines
2.5 KiB
JSON
69 lines
2.5 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://stellaops.org/concelier/advisory.observation.updated@1.schema.json",
|
|
"title": "advisory.observation.updated@1",
|
|
"type": "object",
|
|
"required": [
|
|
"eventId",
|
|
"tenantId",
|
|
"observationId",
|
|
"advisoryId",
|
|
"source",
|
|
"linksetSummary",
|
|
"documentSha",
|
|
"observationHash",
|
|
"ingestedAt",
|
|
"replayCursor"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"eventId": { "type": "string", "format": "uuid" },
|
|
"tenantId": { "type": "string", "pattern": "^urn:tenant:[0-9a-fA-F-]{36}$" },
|
|
"observationId": { "type": "string", "pattern": "^[a-f0-9]{24}$" },
|
|
"advisoryId": { "type": "string", "minLength": 1 },
|
|
"source": {
|
|
"type": "object",
|
|
"required": ["vendor", "stream", "api", "collectorVersion"],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"vendor": { "type": "string", "minLength": 1 },
|
|
"stream": { "type": "string", "minLength": 1 },
|
|
"api": { "type": "string", "minLength": 1 },
|
|
"collectorVersion": { "type": "string", "minLength": 1 }
|
|
}
|
|
},
|
|
"linksetSummary": {
|
|
"type": "object",
|
|
"required": ["aliases", "purls"],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"aliases": { "type": "array", "items": { "type": "string" }, "uniqueItems": true },
|
|
"purls": { "type": "array", "items": { "type": "string" }, "uniqueItems": true },
|
|
"cpes": { "type": "array", "items": { "type": "string" }, "uniqueItems": true },
|
|
"scopes": { "type": "array", "items": { "type": "string" }, "uniqueItems": true },
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"required": ["type", "source", "target"],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"type": { "type": "string" },
|
|
"source": { "type": "string" },
|
|
"target": { "type": "string" },
|
|
"provenance": { "type": "string" }
|
|
}
|
|
},
|
|
"uniqueItems": false
|
|
}
|
|
}
|
|
},
|
|
"supersedesId": { "type": "string", "pattern": "^[a-f0-9]{24}$" },
|
|
"documentSha": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
"observationHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
"ingestedAt": { "type": "string", "format": "date-time" },
|
|
"traceId": { "type": "string" },
|
|
"replayCursor": { "type": "string", "minLength": 1 }
|
|
}
|
|
}
|