Add tests and implement timeline ingestion options with NATS and Redis subscribers
- Introduced `BinaryReachabilityLifterTests` to validate binary lifting functionality. - Created `PackRunWorkerOptions` for configuring worker paths and execution persistence. - Added `TimelineIngestionOptions` for configuring NATS and Redis ingestion transports. - Implemented `NatsTimelineEventSubscriber` for subscribing to NATS events. - Developed `RedisTimelineEventSubscriber` for reading from Redis Streams. - Added `TimelineEnvelopeParser` to normalize incoming event envelopes. - Created unit tests for `TimelineEnvelopeParser` to ensure correct field mapping. - Implemented `TimelineAuthorizationAuditSink` for logging authorization outcomes.
This commit is contained in:
@@ -87,7 +87,7 @@ internal sealed class ConsoleSimulationDiffService
|
||||
var findingId = CreateDeterministicId("fid", policyVersion, artifact.ArtifactDigest, seed.ToString());
|
||||
var severity = SeverityOrder[baseSeed[1] % SeverityOrder.Length];
|
||||
var outcome = Outcomes[baseSeed[2] % Outcomes.Length];
|
||||
var ruleId = $"RULE-{(baseSeed[3] % 9000) + 1000}";
|
||||
var ruleId = $"RULE-{(baseSeed[3] % 9000) + 1000}"; // deterministic single finding per artifact
|
||||
|
||||
results.Add(new SimulationFindingResult(
|
||||
FindingId: findingId,
|
||||
|
||||
Reference in New Issue
Block a user