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:
@@ -193,11 +193,11 @@ services.AddMemoryCache();
|
||||
builder.ConfigureExcititorTelemetry();
|
||||
|
||||
// Stella Router integration
|
||||
var routerOptions = configuration.GetSection("Excititor:Router").Get<StellaRouterOptionsBase>();
|
||||
services.TryAddStellaRouter(
|
||||
var routerEnabled = services.AddRouterMicroservice(
|
||||
builder.Configuration,
|
||||
serviceName: "excititor",
|
||||
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);
|
||||
|
||||
@@ -207,7 +207,7 @@ app.LogStellaOpsLocalHostname("excititor");
|
||||
|
||||
app.UseStellaOpsCors();
|
||||
// Auth middleware removed -- see service registration comment above.
|
||||
app.TryUseStellaRouter(routerOptions);
|
||||
app.TryUseStellaRouter(routerEnabled);
|
||||
app.UseObservabilityHeaders();
|
||||
|
||||
app.MapGet("/excititor/status", async (HttpContext context,
|
||||
@@ -229,7 +229,7 @@ app.MapHealthChecks("/excititor/health");
|
||||
// OpenAPI discovery (WEB-OAS-61-001)
|
||||
app.MapGet("/.well-known/openapi", () =>
|
||||
{
|
||||
var version = Assembly.GetExecutingAssembly().GetName().Version?.ToString() ?? "0.0.0";
|
||||
var version = System.Reflection.CustomAttributeExtensions.GetCustomAttribute<System.Reflection.AssemblyInformationalVersionAttribute>(Assembly.GetExecutingAssembly())?.InformationalVersion ?? "1.0.0";
|
||||
|
||||
var payload = new
|
||||
{
|
||||
@@ -246,7 +246,7 @@ app.MapGet("/.well-known/openapi", () =>
|
||||
|
||||
app.MapGet("/openapi/excititor.json", () =>
|
||||
{
|
||||
var version = Assembly.GetExecutingAssembly().GetName().Version?.ToString() ?? "0.0.0";
|
||||
var version = System.Reflection.CustomAttributeExtensions.GetCustomAttribute<System.Reflection.AssemblyInformationalVersionAttribute>(Assembly.GetExecutingAssembly())?.InformationalVersion ?? "1.0.0";
|
||||
|
||||
var spec = new
|
||||
{
|
||||
@@ -2281,7 +2281,7 @@ LinksetEndpoints.MapLinksetEndpoints(app);
|
||||
RiskFeedEndpoints.MapRiskFeedEndpoints(app);
|
||||
|
||||
// Refresh Router endpoint cache
|
||||
app.TryRefreshStellaRouterEndpoints(routerOptions);
|
||||
app.TryRefreshStellaRouterEndpoints(routerEnabled);
|
||||
|
||||
app.Run();
|
||||
|
||||
@@ -2393,3 +2393,6 @@ internal sealed record VexSeveritySignalRequest(string Scheme, double? Score, st
|
||||
{
|
||||
public VexSeveritySignal ToDomain() => new(Scheme, Score, Label, Vector);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user