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

@@ -13,6 +13,7 @@ using System.Diagnostics.Metrics;
using System.Globalization;
using System.Text.Json;
using StellaOps.Router.AspNet;
var builder = WebApplication.CreateBuilder(args);
builder.Configuration
@@ -232,6 +233,12 @@ static int NormalizeLimit(int? requested, int defaultValue, int ceiling)
builder.Services.AddStellaOpsCors(builder.Environment, builder.Configuration);
// Stella Router integration
var routerEnabled = builder.Services.AddRouterMicroservice(
builder.Configuration,
serviceName: "sbomservice",
version: System.Reflection.CustomAttributeExtensions.GetCustomAttribute<System.Reflection.AssemblyInformationalVersionAttribute>(System.Reflection.Assembly.GetExecutingAssembly())?.InformationalVersion ?? "1.0.0",
routerOptionsSection: "Router");
builder.TryAddStellaOpsLocalBinding("sbomservice");
var app = builder.Build();
app.LogStellaOpsLocalHostname("sbomservice");
@@ -244,6 +251,7 @@ if (app.Environment.IsDevelopment())
app.UseStellaOpsCors();
app.UseAuthentication();
app.UseAuthorization();
app.TryUseStellaRouter(routerEnabled);
app.MapGet("/healthz", () => Results.Ok(new { status = "ok" }));
app.MapGet("/readyz", () => Results.Ok(new { status = "warming" }));
@@ -1353,6 +1361,7 @@ app.MapPost("/internal/orchestrator/watermarks", async Task<IResult> (
return Results.Ok(updated);
});
app.TryRefreshStellaRouterEndpoints(routerEnabled);
app.Run();
// Program class in namespace to avoid conflicts with other assemblies
@@ -1360,3 +1369,4 @@ namespace StellaOps.SbomService
{
public partial class Program;
}

View File

@@ -22,4 +22,8 @@
<ItemGroup>
<InternalsVisibleTo Include="StellaOps.SbomService.Tests" />
</ItemGroup>
<PropertyGroup Label="StellaOpsReleaseVersion">
<Version>1.0.0-alpha1</Version>
<InformationalVersion>1.0.0-alpha1</InformationalVersion>
</PropertyGroup>
</Project>