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

@@ -105,11 +105,11 @@ ConfigureRateLimiting(builder, bootstrapOptions);
builder.Services.AddEndpointsApiExplorer();
// Stella Router integration
var routerOptions = builder.Configuration.GetSection("Notify:Router").Get<StellaRouterOptionsBase>();
builder.Services.TryAddStellaRouter(
var routerEnabled = builder.Services.AddRouterMicroservice(
builder.Configuration,
serviceName: "notify",
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);
@@ -122,12 +122,11 @@ var readyStatus = app.Services.GetRequiredService<ServiceStatus>();
var resolvedOptions = app.Services.GetRequiredService<IOptions<NotifyWebServiceOptions>>().Value;
await InitialiseAsync(app.Services, readyStatus, app.Logger, resolvedOptions);
ConfigureRequestPipeline(app, bootstrapOptions);
ConfigureRequestPipeline(app, bootstrapOptions, routerEnabled);
ConfigureEndpoints(app);
// Refresh Router endpoint cache
var notifyRouterOptions = app.Configuration.GetSection("Notify:Router").Get<StellaRouterOptionsBase>();
app.TryRefreshStellaRouterEndpoints(notifyRouterOptions);
app.TryRefreshStellaRouterEndpoints(routerEnabled);
await app.RunAsync();
@@ -338,7 +337,7 @@ static async Task InitialiseAsync(IServiceProvider services, ServiceStatus statu
}
}
static void ConfigureRequestPipeline(WebApplication app, NotifyWebServiceOptions options)
static void ConfigureRequestPipeline(WebApplication app, NotifyWebServiceOptions options, bool routerEnabled)
{
if (options.Telemetry.EnableRequestLogging)
{
@@ -355,8 +354,7 @@ static void ConfigureRequestPipeline(WebApplication app, NotifyWebServiceOptions
app.UseAuthorization();
// Stella Router integration
var routerOptions = app.Configuration.GetSection("Notify:Router").Get<StellaRouterOptionsBase>();
app.TryUseStellaRouter(routerOptions);
app.TryUseStellaRouter(routerEnabled);
}
static void ConfigureEndpoints(WebApplication app)
@@ -1506,3 +1504,6 @@ static LogEventLevel MapLogLevel(string configuredLevel)
_ => LogEventLevel.Information
};
}

View File

@@ -30,4 +30,8 @@
<ProjectReference Include="../../Authority/StellaOps.Authority/StellaOps.Auth.ServerIntegration/StellaOps.Auth.ServerIntegration.csproj" />
<ProjectReference Include="../../Router/__Libraries/StellaOps.Router.AspNet/StellaOps.Router.AspNet.csproj" />
</ItemGroup>
<PropertyGroup Label="StellaOpsReleaseVersion">
<Version>1.0.0-alpha1</Version>
<InformationalVersion>1.0.0-alpha1</InformationalVersion>
</PropertyGroup>
</Project>