stela ops usage fixes roles propagation and timoeut, one account to support multi tenants, migrations consolidation, search to support documentation, doctor and open api vector db search

This commit is contained in:
master
2026-02-22 19:27:54 +02:00
parent a29f438f53
commit bd8fee6ed8
373 changed files with 832097 additions and 3369 deletions

View File

@@ -32,11 +32,11 @@ builder.Services.AddSingleton<IKevSource, NullKevSource>();
builder.Services.AddSingleton<IExploitMaturityService, ExploitMaturityService>();
// Stella Router integration
var routerOptions = builder.Configuration.GetSection("RiskEngine:Router").Get<StellaRouterOptionsBase>();
builder.Services.TryAddStellaRouter(
var routerEnabled = builder.Services.AddRouterMicroservice(
builder.Configuration,
serviceName: "riskengine",
version: typeof(Program).Assembly.GetName().Version?.ToString() ?? "1.0.0",
routerOptions: routerOptions);
version: System.Reflection.CustomAttributeExtensions.GetCustomAttribute<System.Reflection.AssemblyInformationalVersionAttribute>(System.Reflection.Assembly.GetExecutingAssembly())?.InformationalVersion ?? "1.0.0",
routerOptionsSection: "Router");
builder.Services.AddStellaOpsCors(builder.Environment, builder.Configuration);
@@ -50,7 +50,7 @@ if (app.Environment.IsDevelopment())
}
app.UseStellaOpsCors();
app.TryUseStellaRouter(routerOptions);
app.TryUseStellaRouter(routerEnabled);
// Map exploit maturity endpoints
app.MapExploitMaturityEndpoints();
@@ -116,7 +116,7 @@ app.MapPost("/risk-scores/simulations/summary", async (
});
// Refresh Router endpoint cache
app.TryRefreshStellaRouterEndpoints(routerOptions);
app.TryRefreshStellaRouterEndpoints(routerEnabled);
app.Run();
@@ -152,3 +152,6 @@ static async Task<List<RiskScoreResult>> EvaluateAsync(
return results;
}

View File

@@ -38,4 +38,8 @@
<PropertyGroup Label="StellaOpsReleaseVersion">
<Version>1.0.0-alpha1</Version>
<InformationalVersion>1.0.0-alpha1</InformationalVersion>
</PropertyGroup>
</Project>