save progress

This commit is contained in:
StellaOps Bot
2026-01-03 11:02:24 +02:00
parent ca578801fd
commit 83c37243e0
446 changed files with 22798 additions and 4031 deletions

View File

@@ -7,6 +7,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
using StellaOps.Policy.Counterfactuals;
using StellaOps.Scanner.WebService.Security;
@@ -61,9 +62,8 @@ internal static class CounterfactualEndpoints
}
private static async Task<IResult> HandleComputeAsync(
CounterfactualRequestDto request,
ICounterfactualApiService counterfactualService,
HttpContext context,
[FromBody] CounterfactualRequestDto request,
[FromServices] ICounterfactualApiService counterfactualService,
CancellationToken cancellationToken = default)
{
ArgumentNullException.ThrowIfNull(counterfactualService);
@@ -93,9 +93,8 @@ internal static class CounterfactualEndpoints
}
private static async Task<IResult> HandleGetForFindingAsync(
string findingId,
ICounterfactualApiService counterfactualService,
HttpContext context,
[FromRoute] string findingId,
[FromServices] ICounterfactualApiService counterfactualService,
CancellationToken cancellationToken = default)
{
ArgumentNullException.ThrowIfNull(counterfactualService);
@@ -126,9 +125,8 @@ internal static class CounterfactualEndpoints
}
private static async Task<IResult> HandleGetScanSummaryAsync(
string scanId,
ICounterfactualApiService counterfactualService,
HttpContext context,
[FromRoute] string scanId,
[FromServices] ICounterfactualApiService counterfactualService,
CancellationToken cancellationToken = default)
{
ArgumentNullException.ThrowIfNull(counterfactualService);

View File

@@ -4,6 +4,7 @@ using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
using Microsoft.Extensions.Options;
using StellaOps.Scanner.WebService.Constants;
@@ -49,9 +50,9 @@ internal static class RuntimeEndpoints
}
private static async Task<IResult> HandleRuntimeEventsAsync(
RuntimeEventsIngestRequestDto request,
IRuntimeEventIngestionService ingestionService,
IOptions<ScannerWebServiceOptions> options,
[FromBody] RuntimeEventsIngestRequestDto request,
[FromServices] IRuntimeEventIngestionService ingestionService,
[FromServices] IOptions<ScannerWebServiceOptions> options,
HttpContext context,
CancellationToken cancellationToken)
{
@@ -244,8 +245,8 @@ internal static class RuntimeEndpoints
}
private static async Task<IResult> HandleRuntimeReconcileAsync(
RuntimeReconcileRequestDto request,
IRuntimeInventoryReconciler reconciler,
[FromBody] RuntimeReconcileRequestDto request,
[FromServices] IRuntimeInventoryReconciler reconciler,
HttpContext context,
CancellationToken cancellationToken)
{

View File

@@ -7,6 +7,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
using StellaOps.Scanner.Triage.Models;
using StellaOps.Scanner.WebService.Security;
@@ -38,9 +39,8 @@ internal static class ProofBundleEndpoints
}
private static async Task<IResult> HandleGenerateProofBundleAsync(
ProofBundleRequest request,
IProofBundleGenerator bundleGenerator,
HttpContext context,
[FromBody] ProofBundleRequest request,
[FromServices] IProofBundleGenerator bundleGenerator,
CancellationToken cancellationToken)
{
ArgumentNullException.ThrowIfNull(bundleGenerator);

View File

@@ -7,6 +7,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
using StellaOps.Scanner.Triage.Models;
using StellaOps.Scanner.Triage.Services;
@@ -45,11 +46,10 @@ internal static class TriageInboxEndpoints
}
private static async Task<IResult> HandleGetInboxAsync(
string artifactDigest,
string? filter,
IExploitPathGroupingService groupingService,
IFindingQueryService findingService,
HttpContext context,
[FromQuery] string artifactDigest,
[FromQuery] string? filter,
[FromServices] IExploitPathGroupingService groupingService,
[FromServices] IFindingQueryService findingService,
CancellationToken cancellationToken)
{
ArgumentNullException.ThrowIfNull(groupingService);