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

@@ -60,11 +60,11 @@ builder.Services.AddHealthChecks();
builder.Services.AddStellaOpsCors(builder.Environment, builder.Configuration);
// Stella Router integration
var routerOptions = builder.Configuration.GetSection("PacksRegistry:Router").Get<StellaRouterOptionsBase>();
builder.Services.TryAddStellaRouter(
var routerEnabled = builder.Services.AddRouterMicroservice(
builder.Configuration,
serviceName: "packsregistry",
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.TryAddStellaOpsLocalBinding("packsregistry");
var app = builder.Build();
@@ -77,7 +77,7 @@ if (app.Environment.IsDevelopment())
app.UseStellaOpsCors();
app.MapHealthChecks("/healthz");
app.TryUseStellaRouter(routerOptions);
app.TryUseStellaRouter(routerEnabled);
// Serve static OpenAPI stubs for packs APIs (until unified spec is generated)
var openApiDir = Path.Combine(app.Environment.ContentRootPath, "OpenApi");
@@ -740,7 +740,7 @@ app.MapGet("/api/v1/compliance/summary", async (string? tenant, ComplianceServic
.Produces(StatusCodes.Status403Forbidden);
// Refresh Router endpoint cache
app.TryRefreshStellaRouterEndpoints(routerOptions);
app.TryRefreshStellaRouterEndpoints(routerEnabled);
app.Run();
@@ -776,3 +776,6 @@ static bool IsTenantAllowed(string tenant, AuthOptions auth, out IResult? result
// Expose Program class for WebApplicationFactory in tests
public partial class Program;