Centralizes audit column ownership in the auditing interceptor

Removes explicit audit assignments from mappings, handlers, repositories,
seeding, and background jobs, leaving the auditing interceptor as the only
writer of the audit columns for ordinary saves.

Adds a one-time initialization save so setup can attribute the original admin
account and seeded rows to the SYSTEM audit identity, while ordinary anonymous
writes remain unattributed with Guid.Empty.
This commit is contained in:
BinaryAlley committed 2026-11-21 12:00:00 +02:00
1 parent b56fabf5df
commit 7253f1507c
98 files changed
+731 -516

No files matched your search

@@ -413,7 +413,7 @@ public class StartConsumptionEndpointTests : IClassFixture<AuthenticatedLuminaAp
{
using IServiceScope scope = _apiFactory.Services.CreateScope();
IDataSeedService dataSeedService = scope.ServiceProvider.GetRequiredService<IDataSeedService>();
await dataSeedService.SetDefaultAuthorizationRolesAsync(userId, CancellationToken.None);
await dataSeedService.SetDefaultAuthorizationRolesAsync(CancellationToken.None);
await dataSeedService.SetAdminRoleToAdministratorAccount(userId, CancellationToken.None);
}