stabilizaiton work - projects rework for maintenanceability and ui livening

This commit is contained in:
master
2026-02-03 23:40:04 +02:00
parent 074ce117ba
commit 557feefdc3
3305 changed files with 186813 additions and 107843 deletions

View File

@@ -494,7 +494,11 @@ builder.Services.AddSingleton<IAdvisoryLinksetQueryService>(sp =>
return new NullAdvisoryLinksetQueryService();
});
builder.Services.AddStellaOpsCors(builder.Environment, builder.Configuration);
builder.TryAddStellaOpsLocalBinding("scanner");
var app = builder.Build();
app.LogStellaOpsLocalHostname("scanner");
// Fail fast if surface configuration is invalid at startup.
using (var validationScope = app.Services.CreateScope())
@@ -565,6 +569,7 @@ app.UseExceptionHandler(errorApp =>
// Always add authentication and authorization middleware
// Even in anonymous mode, endpoints use RequireAuthorization() which needs the middleware
app.UseStellaOpsCors();
app.UseAuthentication();
app.UseAuthorization();