fix(backend): simplify Finbuckle namespace imports and register DB interceptors
- Use consolidated Finbuckle.MultiTenant namespace instead of separate imports - Switch TenantProvider to use untyped IMultiTenantContextAccessor (Finbuckle 9.x pattern) - Register TenantDbConnectionInterceptor and SaveChangesTenantInterceptor as singletons - Add interceptors to DbContext configuration for RLS tenant context support - Update evidence files for Task 7 and Task 8 verification
This commit is contained in:
40
.sisyphus/evidence/task-8-cross-tenant-denied.txt
Normal file
40
.sisyphus/evidence/task-8-cross-tenant-denied.txt
Normal file
@@ -0,0 +1,40 @@
|
||||
Wiederherzustellende Projekte werden ermittelt...
|
||||
/Users/mastermito/Dev/opencode/backend/WorkClub.Tests.Integration/WorkClub.Tests.Integration.csproj : warning NU1902: Das Paket "BouncyCastle.Cryptography" 2.2.1 weist eine bekannte Moderat Schweregrad-Sicherheitsanfälligkeit auf, https://github.com/advisories/GHSA-8xfc-gm6g-vgpv.
|
||||
/Users/mastermito/Dev/opencode/backend/WorkClub.Tests.Integration/WorkClub.Tests.Integration.csproj : warning NU1902: Das Paket "BouncyCastle.Cryptography" 2.2.1 weist eine bekannte Moderat Schweregrad-Sicherheitsanfälligkeit auf, https://github.com/advisories/GHSA-m44j-cfrm-g8qc.
|
||||
/Users/mastermito/Dev/opencode/backend/WorkClub.Tests.Integration/WorkClub.Tests.Integration.csproj : warning NU1902: Das Paket "BouncyCastle.Cryptography" 2.2.1 weist eine bekannte Moderat Schweregrad-Sicherheitsanfälligkeit auf, https://github.com/advisories/GHSA-v435-xc8x-wvr9.
|
||||
Alle Projekte sind für die Wiederherstellung auf dem neuesten Stand.
|
||||
/Users/mastermito/Dev/opencode/backend/WorkClub.Tests.Integration/WorkClub.Tests.Integration.csproj : warning NU1902: Das Paket "BouncyCastle.Cryptography" 2.2.1 weist eine bekannte Moderat Schweregrad-Sicherheitsanfälligkeit auf, https://github.com/advisories/GHSA-8xfc-gm6g-vgpv.
|
||||
/Users/mastermito/Dev/opencode/backend/WorkClub.Tests.Integration/WorkClub.Tests.Integration.csproj : warning NU1902: Das Paket "BouncyCastle.Cryptography" 2.2.1 weist eine bekannte Moderat Schweregrad-Sicherheitsanfälligkeit auf, https://github.com/advisories/GHSA-m44j-cfrm-g8qc.
|
||||
/Users/mastermito/Dev/opencode/backend/WorkClub.Tests.Integration/WorkClub.Tests.Integration.csproj : warning NU1902: Das Paket "BouncyCastle.Cryptography" 2.2.1 weist eine bekannte Moderat Schweregrad-Sicherheitsanfälligkeit auf, https://github.com/advisories/GHSA-v435-xc8x-wvr9.
|
||||
WorkClub.Domain -> /Users/mastermito/Dev/opencode/backend/WorkClub.Domain/bin/Debug/net10.0/WorkClub.Domain.dll
|
||||
WorkClub.Application -> /Users/mastermito/Dev/opencode/backend/WorkClub.Application/bin/Debug/net10.0/WorkClub.Application.dll
|
||||
WorkClub.Infrastructure -> /Users/mastermito/Dev/opencode/backend/WorkClub.Infrastructure/bin/Debug/net10.0/WorkClub.Infrastructure.dll
|
||||
WorkClub.Api -> /Users/mastermito/Dev/opencode/backend/WorkClub.Api/bin/Debug/net10.0/WorkClub.Api.dll
|
||||
WorkClub.Tests.Integration -> /Users/mastermito/Dev/opencode/backend/WorkClub.Tests.Integration/bin/Debug/net10.0/WorkClub.Tests.Integration.dll
|
||||
Testlauf für "/Users/mastermito/Dev/opencode/backend/WorkClub.Tests.Integration/bin/Debug/net10.0/WorkClub.Tests.Integration.dll" (.NETCoreApp,Version=v10.0)
|
||||
VSTest-Version 18.0.1 (arm64)
|
||||
|
||||
Die Testausführung wird gestartet, bitte warten...
|
||||
Insgesamt 1 Testdateien stimmten mit dem angegebenen Muster überein.
|
||||
/Users/mastermito/Dev/opencode/backend/WorkClub.Tests.Integration/bin/Debug/net10.0/WorkClub.Tests.Integration.dll
|
||||
[xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.1.4+50e68bbb8b (64-bit .NET 10.0.0)
|
||||
[xUnit.net 00:00:00.05] Discovering: WorkClub.Tests.Integration
|
||||
[xUnit.net 00:00:00.07] Discovered: WorkClub.Tests.Integration
|
||||
[xUnit.net 00:00:00.08] Starting: WorkClub.Tests.Integration
|
||||
info: Microsoft.Hosting.Lifetime[0]
|
||||
Application started. Press Ctrl+C to shut down.
|
||||
info: Microsoft.Hosting.Lifetime[0]
|
||||
Hosting environment: Testing
|
||||
info: Microsoft.Hosting.Lifetime[0]
|
||||
Content root path: /Users/mastermito/Dev/opencode/backend/WorkClub.Api
|
||||
warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
|
||||
Failed to determine the https port for redirect.
|
||||
info: Microsoft.Hosting.Lifetime[0]
|
||||
Application is shutting down...
|
||||
[xUnit.net 00:00:00.38] Finished: WorkClub.Tests.Integration
|
||||
Bestanden WorkClub.Tests.Integration.Middleware.TenantValidationTests.Request_WithNonMemberTenantId_Returns403 [274 ms]
|
||||
|
||||
Der Testlauf war erfolgreich.
|
||||
Gesamtzahl Tests: 1
|
||||
Bestanden: 1
|
||||
Gesamtzeit: 0,7569 Sekunden
|
||||
Reference in New Issue
Block a user