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:
@@ -377,7 +377,7 @@ internal static class AttestorWebServiceComposition
|
||||
});
|
||||
}
|
||||
|
||||
public static void UseAttestorWebService(this WebApplication app, AttestorOptions attestorOptions, StellaRouterOptionsBase? routerOptions)
|
||||
public static void UseAttestorWebService(this WebApplication app, AttestorOptions attestorOptions, bool routerEnabled)
|
||||
{
|
||||
var guidProvider = app.Services.GetService<IGuidProvider>() ?? SystemGuidProvider.Instance;
|
||||
app.UseSerilogRequestLogging();
|
||||
@@ -411,7 +411,7 @@ internal static class AttestorWebServiceComposition
|
||||
|
||||
app.UseAuthentication();
|
||||
app.UseAuthorization();
|
||||
app.TryUseStellaRouter(routerOptions);
|
||||
app.TryUseStellaRouter(routerEnabled);
|
||||
|
||||
app.MapHealthChecks("/health/ready");
|
||||
app.MapHealthChecks("/health/live");
|
||||
@@ -421,7 +421,7 @@ internal static class AttestorWebServiceComposition
|
||||
app.MapWatchlistEndpoints();
|
||||
app.MapPredicateRegistryEndpoints();
|
||||
|
||||
app.TryRefreshStellaRouterEndpoints(routerOptions);
|
||||
app.TryRefreshStellaRouterEndpoints(routerEnabled);
|
||||
}
|
||||
|
||||
public static List<X509Certificate2> LoadClientCertificateAuthorities(string? path)
|
||||
|
||||
@@ -24,8 +24,7 @@ public static class PredicateRegistryEndpoints
|
||||
public static void MapPredicateRegistryEndpoints(this IEndpointRouteBuilder app)
|
||||
{
|
||||
var group = app.MapGroup("/api/v1/attestor/predicates")
|
||||
.WithTags("Predicate Registry")
|
||||
.WithOpenApi();
|
||||
.WithTags("Predicate Registry");
|
||||
|
||||
group.MapGet("/", ListPredicateTypes)
|
||||
.WithName("ListPredicateTypes")
|
||||
|
||||
@@ -31,18 +31,18 @@ builder.WebHost.ConfigureAttestorKestrel(attestorOptions, clientCertificateAutho
|
||||
builder.Services.AddStellaOpsCors(builder.Environment, builder.Configuration);
|
||||
|
||||
// Stella Router integration
|
||||
var routerOptions = builder.Configuration.GetSection("Attestor:Router").Get<StellaRouterOptionsBase>();
|
||||
builder.Services.TryAddStellaRouter(
|
||||
serviceName: "attestor",
|
||||
version: typeof(Program).Assembly.GetName().Version?.ToString() ?? "1.0.0",
|
||||
routerOptions: routerOptions);
|
||||
var routerEnabled = builder.Services.AddRouterMicroservice(
|
||||
builder.Configuration,
|
||||
serviceName: "attestor",
|
||||
version: System.Reflection.CustomAttributeExtensions.GetCustomAttribute<System.Reflection.AssemblyInformationalVersionAttribute>(System.Reflection.Assembly.GetExecutingAssembly())?.InformationalVersion ?? "1.0.0",
|
||||
routerOptionsSection: "Router");
|
||||
|
||||
builder.TryAddStellaOpsLocalBinding("attestor");
|
||||
var app = builder.Build();
|
||||
app.LogStellaOpsLocalHostname("attestor");
|
||||
|
||||
app.UseStellaOpsCors();
|
||||
app.UseAttestorWebService(attestorOptions, routerOptions);
|
||||
app.UseAttestorWebService(attestorOptions, routerEnabled);
|
||||
|
||||
app.Run();
|
||||
|
||||
@@ -74,3 +74,6 @@ internal sealed class NoAuthHandler : AuthenticationHandler<AuthenticationScheme
|
||||
public partial class Program
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -34,4 +34,8 @@
|
||||
<ProjectReference Include="..\..\__Libraries\StellaOps.Attestor.Watchlist\StellaOps.Attestor.Watchlist.csproj" />
|
||||
<ProjectReference Include="..\..\__Libraries\StellaOps.Attestor.Persistence\StellaOps.Attestor.Persistence.csproj" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="StellaOpsReleaseVersion">
|
||||
<Version>1.0.0-alpha1</Version>
|
||||
<InformationalVersion>1.0.0-alpha1</InformationalVersion>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user