5100* tests strengthtenen work

This commit is contained in:
StellaOps Bot
2025-12-24 12:38:34 +02:00
parent 9a08d10b89
commit 02772c7a27
117 changed files with 29941 additions and 66 deletions

View File

@@ -23,6 +23,7 @@ using StellaOps.Scheduler.WebService.PolicyRuns;
using StellaOps.Scheduler.WebService.PolicySimulations;
using StellaOps.Scheduler.WebService.VulnerabilityResolverJobs;
using StellaOps.Scheduler.WebService.Runs;
using StellaOps.Router.AspNet;
var builder = WebApplication.CreateBuilder(args);
@@ -194,10 +195,18 @@ else
builder.Services.AddEndpointsApiExplorer();
// Stella Router integration
var routerOptions = builder.Configuration.GetSection("Scheduler:Router").Get<StellaRouterOptionsBase>();
builder.Services.TryAddStellaRouter(
serviceName: "scheduler",
version: typeof(Program).Assembly.GetName().Version?.ToString() ?? "1.0.0",
routerOptions: routerOptions);
var app = builder.Build();
app.UseAuthentication();
app.UseAuthorization();
app.TryUseStellaRouter(routerOptions);
if (!authorityOptions.Enabled)
{
@@ -220,6 +229,9 @@ app.MapPolicyRunEndpoints();
app.MapPolicySimulationEndpoints();
app.MapSchedulerEventWebhookEndpoints();
// Refresh Router endpoint cache
app.TryRefreshStellaRouterEndpoints(routerOptions);
app.Run();
public partial class Program;