diff --git a/docs/implplan/SPRINT_20260408_005_Audit_endpoint_filters_deprecation.md b/docs/implplan/SPRINT_20260408_005_Audit_endpoint_filters_deprecation.md index ad0367454..60d9835e8 100644 --- a/docs/implplan/SPRINT_20260408_005_Audit_endpoint_filters_deprecation.md +++ b/docs/implplan/SPRINT_20260408_005_Audit_endpoint_filters_deprecation.md @@ -231,7 +231,14 @@ This minimizes the per-endpoint boilerplate (no `.AddEndpointFilter }); }); +builder.Services.AddAuditEmission(builder.Configuration); + builder.TryAddStellaOpsLocalBinding("advisoryai"); var app = builder.Build(); app.LogStellaOpsLocalHostname("advisoryai"); diff --git a/src/AdvisoryAI/StellaOps.AdvisoryAI.WebService/StellaOps.AdvisoryAI.WebService.csproj b/src/AdvisoryAI/StellaOps.AdvisoryAI.WebService/StellaOps.AdvisoryAI.WebService.csproj index ef2f197e4..c16175583 100644 --- a/src/AdvisoryAI/StellaOps.AdvisoryAI.WebService/StellaOps.AdvisoryAI.WebService.csproj +++ b/src/AdvisoryAI/StellaOps.AdvisoryAI.WebService/StellaOps.AdvisoryAI.WebService.csproj @@ -22,6 +22,7 @@ + diff --git a/src/AdvisoryAI/StellaOps.OpsMemory.WebService/Program.cs b/src/AdvisoryAI/StellaOps.OpsMemory.WebService/Program.cs index 2c861e90a..3a992401a 100644 --- a/src/AdvisoryAI/StellaOps.OpsMemory.WebService/Program.cs +++ b/src/AdvisoryAI/StellaOps.OpsMemory.WebService/Program.cs @@ -8,6 +8,7 @@ using StellaOps.Determinism; using StellaOps.OpsMemory.Playbook; using StellaOps.OpsMemory.Similarity; using StellaOps.OpsMemory.Storage; +using StellaOps.Audit.Emission; using StellaOps.Localization; using StellaOps.Router.AspNet; using StellaOps.OpsMemory.WebService.Endpoints; @@ -67,6 +68,8 @@ var routerEnabled = builder.Services.AddRouterMicroservice( serviceName: "opsmemory", version: System.Reflection.CustomAttributeExtensions.GetCustomAttribute(System.Reflection.Assembly.GetExecutingAssembly())?.InformationalVersion ?? "1.0.0", routerOptionsSection: "Router"); +builder.Services.AddAuditEmission(builder.Configuration); + builder.TryAddStellaOpsLocalBinding("opsmemory"); var app = builder.Build(); app.LogStellaOpsLocalHostname("opsmemory"); diff --git a/src/AdvisoryAI/StellaOps.OpsMemory.WebService/StellaOps.OpsMemory.WebService.csproj b/src/AdvisoryAI/StellaOps.OpsMemory.WebService/StellaOps.OpsMemory.WebService.csproj index b2abc3ea8..6bd42d572 100644 --- a/src/AdvisoryAI/StellaOps.OpsMemory.WebService/StellaOps.OpsMemory.WebService.csproj +++ b/src/AdvisoryAI/StellaOps.OpsMemory.WebService/StellaOps.OpsMemory.WebService.csproj @@ -14,6 +14,7 @@ + diff --git a/src/Attestor/StellaOps.Attestor/StellaOps.Attestor.WebService/Program.cs b/src/Attestor/StellaOps.Attestor/StellaOps.Attestor.WebService/Program.cs index 5a77dc002..43dd71e89 100644 --- a/src/Attestor/StellaOps.Attestor/StellaOps.Attestor.WebService/Program.cs +++ b/src/Attestor/StellaOps.Attestor/StellaOps.Attestor.WebService/Program.cs @@ -3,6 +3,7 @@ using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Options; using StellaOps.Attestor.Core.Options; +using StellaOps.Audit.Emission; using StellaOps.Localization; using StellaOps.Attestor.WebService; using StellaOps.Configuration; @@ -41,6 +42,8 @@ var routerEnabled = builder.Services.AddRouterMicroservice( version: System.Reflection.CustomAttributeExtensions.GetCustomAttribute(System.Reflection.Assembly.GetExecutingAssembly())?.InformationalVersion ?? "1.0.0", routerOptionsSection: "Router"); +builder.Services.AddAuditEmission(builder.Configuration); + builder.TryAddStellaOpsLocalBinding("attestor"); var app = builder.Build(); app.LogStellaOpsLocalHostname("attestor"); diff --git a/src/Attestor/StellaOps.Attestor/StellaOps.Attestor.WebService/StellaOps.Attestor.WebService.csproj b/src/Attestor/StellaOps.Attestor/StellaOps.Attestor.WebService/StellaOps.Attestor.WebService.csproj index 590770f5b..6d908b2e4 100644 --- a/src/Attestor/StellaOps.Attestor/StellaOps.Attestor.WebService/StellaOps.Attestor.WebService.csproj +++ b/src/Attestor/StellaOps.Attestor/StellaOps.Attestor.WebService/StellaOps.Attestor.WebService.csproj @@ -35,6 +35,7 @@ + diff --git a/src/Doctor/StellaOps.Doctor.WebService/Program.cs b/src/Doctor/StellaOps.Doctor.WebService/Program.cs index 00fdaa101..5e1226402 100644 --- a/src/Doctor/StellaOps.Doctor.WebService/Program.cs +++ b/src/Doctor/StellaOps.Doctor.WebService/Program.cs @@ -4,6 +4,7 @@ using Microsoft.Extensions.Logging; +using StellaOps.Audit.Emission; using StellaOps.Auth.ServerIntegration; using StellaOps.Localization; using StellaOps.Auth.ServerIntegration.Tenancy; @@ -170,6 +171,7 @@ var routerEnabled = builder.Services.AddRouterMicroservice( builder.Services.AddStellaOpsTenantServices(); builder.Services.AddStellaOpsLocalization(builder.Configuration); builder.Services.AddTranslationBundle(System.Reflection.Assembly.GetExecutingAssembly()); +builder.Services.AddAuditEmission(builder.Configuration); builder.TryAddStellaOpsLocalBinding("doctor"); var app = builder.Build(); app.LogStellaOpsLocalHostname("doctor"); diff --git a/src/Doctor/StellaOps.Doctor.WebService/StellaOps.Doctor.WebService.csproj b/src/Doctor/StellaOps.Doctor.WebService/StellaOps.Doctor.WebService.csproj index f1c9f9b59..7652faeee 100644 --- a/src/Doctor/StellaOps.Doctor.WebService/StellaOps.Doctor.WebService.csproj +++ b/src/Doctor/StellaOps.Doctor.WebService/StellaOps.Doctor.WebService.csproj @@ -36,6 +36,7 @@ + diff --git a/src/Findings/StellaOps.Findings.Ledger.WebService/Program.cs b/src/Findings/StellaOps.Findings.Ledger.WebService/Program.cs index 5dbdabbdf..99d746c86 100644 --- a/src/Findings/StellaOps.Findings.Ledger.WebService/Program.cs +++ b/src/Findings/StellaOps.Findings.Ledger.WebService/Program.cs @@ -32,6 +32,7 @@ using StellaOps.Findings.Ledger.WebService.Contracts; using StellaOps.Findings.Ledger.WebService.Endpoints; using StellaOps.Findings.Ledger.WebService.Mappings; using StellaOps.Findings.Ledger.WebService.Services; +using StellaOps.Audit.Emission; using StellaOps.Localization; using StellaOps.Router.AspNet; using StellaOps.Signals.EvidenceWeightedScore; @@ -339,6 +340,8 @@ builder.Services.AddStellaOpsTenantServices(); builder.Services.AddStellaOpsLocalization(builder.Configuration); builder.Services.AddTranslationBundle(System.Reflection.Assembly.GetExecutingAssembly()); +builder.Services.AddAuditEmission(builder.Configuration); + builder.TryAddStellaOpsLocalBinding("findings"); var app = builder.Build(); app.LogStellaOpsLocalHostname("findings"); diff --git a/src/Findings/StellaOps.Findings.Ledger.WebService/StellaOps.Findings.Ledger.WebService.csproj b/src/Findings/StellaOps.Findings.Ledger.WebService/StellaOps.Findings.Ledger.WebService.csproj index fcb1ce8c7..d8b96a2cc 100644 --- a/src/Findings/StellaOps.Findings.Ledger.WebService/StellaOps.Findings.Ledger.WebService.csproj +++ b/src/Findings/StellaOps.Findings.Ledger.WebService/StellaOps.Findings.Ledger.WebService.csproj @@ -26,6 +26,7 @@ + diff --git a/src/Findings/StellaOps.RiskEngine.WebService/Program.cs b/src/Findings/StellaOps.RiskEngine.WebService/Program.cs index 56345016e..c3725639d 100644 --- a/src/Findings/StellaOps.RiskEngine.WebService/Program.cs +++ b/src/Findings/StellaOps.RiskEngine.WebService/Program.cs @@ -1,6 +1,7 @@ using Microsoft.AspNetCore.Mvc; using StellaOps.Auth.Abstractions; +using StellaOps.Audit.Emission; using StellaOps.Localization; using StellaOps.Auth.ServerIntegration; using StellaOps.Auth.ServerIntegration.Tenancy; @@ -56,6 +57,7 @@ var routerEnabled = builder.Services.AddRouterMicroservice( routerOptionsSection: "Router"); builder.Services.AddStellaOpsCors(builder.Environment, builder.Configuration); +builder.Services.AddAuditEmission(builder.Configuration); builder.TryAddStellaOpsLocalBinding("riskengine"); var app = builder.Build(); diff --git a/src/Findings/StellaOps.RiskEngine.WebService/StellaOps.RiskEngine.WebService.csproj b/src/Findings/StellaOps.RiskEngine.WebService/StellaOps.RiskEngine.WebService.csproj index c193dd65f..0da58a8ab 100644 --- a/src/Findings/StellaOps.RiskEngine.WebService/StellaOps.RiskEngine.WebService.csproj +++ b/src/Findings/StellaOps.RiskEngine.WebService/StellaOps.RiskEngine.WebService.csproj @@ -35,6 +35,7 @@ + diff --git a/src/Signals/StellaOps.Signals/Program.cs b/src/Signals/StellaOps.Signals/Program.cs index c2f0421d5..3f934479b 100644 --- a/src/Signals/StellaOps.Signals/Program.cs +++ b/src/Signals/StellaOps.Signals/Program.cs @@ -26,6 +26,7 @@ using System.IO; using System.Net.Http; using System.Threading.Tasks; +using StellaOps.Audit.Emission; using StellaOps.Localization; using StellaOps.Router.AspNet; var builder = WebApplication.CreateBuilder(args); @@ -314,6 +315,8 @@ var routerEnabled = builder.Services.AddRouterMicroservice( serviceName: "signals", version: System.Reflection.CustomAttributeExtensions.GetCustomAttribute(System.Reflection.Assembly.GetExecutingAssembly())?.InformationalVersion ?? "1.0.0", routerOptionsSection: "Router"); +builder.Services.AddAuditEmission(builder.Configuration); + builder.TryAddStellaOpsLocalBinding("signals"); var app = builder.Build(); app.LogStellaOpsLocalHostname("signals"); diff --git a/src/Signals/StellaOps.Signals/StellaOps.Signals.csproj b/src/Signals/StellaOps.Signals/StellaOps.Signals.csproj index b54bfe65f..fffea8ae9 100644 --- a/src/Signals/StellaOps.Signals/StellaOps.Signals.csproj +++ b/src/Signals/StellaOps.Signals/StellaOps.Signals.csproj @@ -27,6 +27,7 @@ +