tests fixes and sprints work
This commit is contained in:
@@ -6,9 +6,13 @@ using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
using StellaOps.Auth.Client;
|
||||
using StellaOps.Concelier.SbomIntegration;
|
||||
using StellaOps.Concelier.SbomIntegration.Parsing;
|
||||
using StellaOps.Configuration;
|
||||
using StellaOps.Scanner.Cache;
|
||||
using StellaOps.Scanner.Reachability;
|
||||
using StellaOps.Scanner.Reachability.Dependencies;
|
||||
using StellaOps.Scanner.Reachability.Dependencies.Reporting;
|
||||
using StellaOps.Scanner.Reachability.Gates;
|
||||
using StellaOps.Scanner.Analyzers.OS.Plugin;
|
||||
using StellaOps.Scanner.Analyzers.Lang.Plugin;
|
||||
@@ -22,12 +26,18 @@ using StellaOps.Scanner.Surface.Env;
|
||||
using StellaOps.Scanner.Surface.FS;
|
||||
using StellaOps.Scanner.Surface.Secrets;
|
||||
using StellaOps.Scanner.Surface.Validation;
|
||||
using StellaOps.Scanner.CryptoAnalysis;
|
||||
using StellaOps.Scanner.ServiceSecurity;
|
||||
using StellaOps.Scanner.Worker.Diagnostics;
|
||||
using StellaOps.Scanner.Worker.Hosting;
|
||||
using StellaOps.Scanner.Worker.Options;
|
||||
using StellaOps.Scanner.Worker.Processing;
|
||||
using StellaOps.Scanner.Worker.Processing.AiMlSecurity;
|
||||
using StellaOps.Scanner.Worker.Processing.BuildProvenance;
|
||||
using StellaOps.Scanner.Worker.Processing.Entropy;
|
||||
using StellaOps.Scanner.Worker.Processing.Secrets;
|
||||
using StellaOps.Scanner.Worker.Processing.ServiceSecurity;
|
||||
using StellaOps.Scanner.Worker.Processing.CryptoAnalysis;
|
||||
using StellaOps.Scanner.Worker.Determinism;
|
||||
using StellaOps.Scanner.Analyzers.Secrets;
|
||||
using StellaOps.Scanner.Worker.Extensions;
|
||||
@@ -35,6 +45,10 @@ using StellaOps.Scanner.Worker.Processing.Surface;
|
||||
using StellaOps.Scanner.Storage.Extensions;
|
||||
using StellaOps.Scanner.Storage;
|
||||
using StellaOps.Scanner.Storage.Services;
|
||||
using StellaOps.BinaryIndex.ML;
|
||||
using StellaOps.Scanner.AiMlSecurity;
|
||||
using StellaOps.Scanner.BuildProvenance;
|
||||
using StellaOps.Scanner.Sarif;
|
||||
using Reachability = StellaOps.Scanner.Worker.Processing.Reachability;
|
||||
using ReachabilityEvidenceStageExecutor = StellaOps.Scanner.Worker.Processing.Reachability.ReachabilityEvidenceStageExecutor;
|
||||
using GateDetectors = StellaOps.Scanner.Reachability.Gates.Detectors;
|
||||
@@ -177,6 +191,58 @@ builder.Services.AddSingleton<IScanStageExecutor, Reachability.ReachabilityBuild
|
||||
builder.Services.AddSingleton<IScanStageExecutor, Reachability.ReachabilityPublishStageExecutor>();
|
||||
builder.Services.AddSingleton<IScanStageExecutor, EntropyStageExecutor>();
|
||||
|
||||
// Service Security Analysis (Sprint: SPRINT_20260119_016)
|
||||
if (workerOptions.ServiceSecurity.Enabled)
|
||||
{
|
||||
builder.Services.TryAddSingleton<ISbomParser, SbomParser>();
|
||||
builder.Services.TryAddSingleton<IParsedSbomParser, ParsedSbomParser>();
|
||||
builder.Services.AddServiceSecurity();
|
||||
builder.Services.AddSingleton<IScanStageExecutor, ServiceSecurityStageExecutor>();
|
||||
}
|
||||
|
||||
// CBOM Crypto Analysis (Sprint: SPRINT_20260119_017)
|
||||
if (workerOptions.CryptoAnalysis.Enabled)
|
||||
{
|
||||
builder.Services.TryAddSingleton<ISbomParser, SbomParser>();
|
||||
builder.Services.TryAddSingleton<IParsedSbomParser, ParsedSbomParser>();
|
||||
builder.Services.AddCryptoAnalysis();
|
||||
builder.Services.AddSingleton<IScanStageExecutor, CryptoAnalysisStageExecutor>();
|
||||
}
|
||||
|
||||
// AI/ML Supply Chain Security (Sprint: SPRINT_20260119_018)
|
||||
if (workerOptions.AiMlSecurity.Enabled)
|
||||
{
|
||||
builder.Services.TryAddSingleton<ISbomParser, SbomParser>();
|
||||
builder.Services.TryAddSingleton<IParsedSbomParser, ParsedSbomParser>();
|
||||
builder.Services.AddAiMlSecurity();
|
||||
if (workerOptions.AiMlSecurity.EnableBinaryAnalysis)
|
||||
{
|
||||
builder.Services.AddMlServices();
|
||||
}
|
||||
builder.Services.AddSingleton<IScanStageExecutor, AiMlSecurityStageExecutor>();
|
||||
}
|
||||
|
||||
// Build Provenance Verification (Sprint: SPRINT_20260119_019)
|
||||
if (workerOptions.BuildProvenance.Enabled)
|
||||
{
|
||||
builder.Services.TryAddSingleton<ISbomParser, SbomParser>();
|
||||
builder.Services.TryAddSingleton<IParsedSbomParser, ParsedSbomParser>();
|
||||
builder.Services.AddBuildProvenance();
|
||||
builder.Services.AddSingleton<IScanStageExecutor, BuildProvenanceStageExecutor>();
|
||||
}
|
||||
|
||||
// SBOM Dependency Reachability (Sprint: SPRINT_20260119_022)
|
||||
if (workerOptions.Reachability.Enabled)
|
||||
{
|
||||
builder.Services.TryAddSingleton<ISbomParser, SbomParser>();
|
||||
builder.Services.TryAddSingleton<IParsedSbomParser, ParsedSbomParser>();
|
||||
builder.Services.TryAddSingleton<IReachabilityPolicyLoader, ReachabilityPolicyLoader>();
|
||||
builder.Services.TryAddSingleton<ISbomAdvisoryMatcher, Reachability.NullSbomAdvisoryMatcher>();
|
||||
builder.Services.TryAddSingleton<ISarifExportService, SarifExportService>();
|
||||
builder.Services.TryAddSingleton<DependencyReachabilityReporter>();
|
||||
builder.Services.AddSingleton<IScanStageExecutor, Reachability.SbomReachabilityStageExecutor>();
|
||||
}
|
||||
|
||||
// Secrets Leak Detection (Sprint: SPRINT_20251229_046_BE)
|
||||
if (workerOptions.Secrets.Enabled)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user