Commit Graph
179 Commits
Author SHA1 Message Date
Arnaud Dartois 5c533a8167 Merge remote-tracking branch 'origin/main' into audit-build-gitea
Heimdall Gitea / Publish versioned release (pull_request) Canceled after 0s
Heimdall Gitea / Build and tests (pull_request) Canceled after 2h17m47s
2026-10-20 07:39:27 +02:00
arnaud.dartois 6b887d5fbf Merge pull request 'fix(auth): secure 2FA challenges and session revocation' (#5) from audit-auth-session into main
Validation intégrée avec profils/failover : Infrastructure 305/305 (dont upgrade/rollback migrations combinées), Application 504/504. Branche auth Web389/389 et PostgreSQL auth3/3 ; révocation abonnements inter-contextes11/11. Galerie #10 suit séparément.
2026-10-20 07:38:58 +02:00
Arnaud Dartois a717653dc9 test(ci): align unknown-resource reception with forbidden security contract 2026-10-20 07:38:05 +02:00
Arnaud Dartois a0401280be Merge remote-tracking branch 'origin/main' into audit-build-gitea 2026-10-20 07:36:38 +02:00
Arnaud Dartois c0467ad820 fix: revalidate live hub sessions from database 2026-10-20 07:36:26 +02:00
arnaud.dartois e932290852 Merge pull request 'fix(pipeline): reconcile camera assignment history and recovery' (#9) from audit/pipe-profile-followup into main
Suite intégrée main + profils + affectations + galerie : Infrastructure 286/286, Application 506/506 ; Agent branche synchronisée 364/364. Aucun échec ni ignoré.
2026-10-20 07:35:47 +02:00
arnaud.dartois 582be5627d Merge pull request 'fix(pipeline): version detection profiles and resync camera configuration' (#8) from audit/pipe-profile into main
Validation intégrée main + runtime + scoring + profils : Infrastructure 283/283 ; Application finale 504/504 ; Agent branche résolue 363/363. Aucun échec ni ignoré.
2026-10-20 07:33:56 +02:00
Arnaud Dartois 4d8bee7b02 test(profile): use an active camera in status fixture 2026-10-20 07:32:51 +02:00
Arnaud Dartois 112fd1a7b5 fix(deps): replace ImageSharp with existing Apache-licensed Magick.NET
Heimdall Gitea / Publish versioned release (pull_request) Canceled after 0s
Heimdall Gitea / Build and tests (pull_request) Canceled after 11m0s
2026-10-20 07:29:46 +02:00
Arnaud Dartois 5109b8fa34 merge latest pipe profile and main into follow-up 2026-10-20 07:29:42 +02:00
arnaud.dartois 90704e6e0e Merge pull request 'fix(scheduler): separate eligibility from negative GPU scores' (#7) from audit/pipe-scoring into main
48 tests AnalysisJobSchedulerServiceTests réussis, 0 échec/ignoré. Suite Agent intégrée main+#6+#7 : 362/362.
2026-10-20 07:28:47 +02:00
arnaud.dartois a0641658d8 Merge pull request 'fix(agent): bound inference work and drain ONNX before disposal' (#6) from audit/pipe-runtime into main
Validation intégrée sur main après #2/#4 avec scoring : suite Agent complète 362 réussis, 0 échec/ignoré. Profil #8 suit.
2026-10-20 07:28:07 +02:00
Arnaud Dartois 084edc313c fix(pipeline): reconcile camera assignments after failover 2026-10-20 07:27:31 +02:00
Arnaud Dartois a182af36d9 merge main into pipe profile and preserve isolation fixes 2026-10-20 07:26:50 +02:00
Arnaud Dartois cab8a789fc build(deps): regenerate test locks after integrating ops and access
Heimdall Gitea / Build and tests (push) Failing after 2m23s
Heimdall Gitea / Publish versioned release (push) Skipped
Heimdall Gitea / Build and tests (pull_request) Failing after 4m26s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-20 07:25:06 +02:00
Arnaud Dartois 50cd3f3210 Merge remote-tracking branch 'origin/main' into audit-build-gitea 2026-10-20 07:24:18 +02:00
Arnaud Dartois 8cdbe6c7fa fix(deps): update vulnerable NuGet dependencies without weakening gates 2026-10-20 07:24:18 +02:00
arnaud.dartois 8b87bbe760 Merge pull request 'fix(security): isolate API resources and SignalR broadcasts' (#4) from audit-access-isolation into main
Validation combinée après exploitation #2 : 251 tests Infrastructure et 385 Web réussis, aucun échec ni ignoré. Auth/session #5 suit avec revalidation des connexions SignalR.
2026-10-20 07:23:27 +02:00
Arnaud Dartois 7ecf4ad247 merge: integrate access isolation into auth session security 2026-10-20 07:22:51 +02:00
Arnaud Dartois 26321bb81c fix(auth): secure 2FA challenges and session revocation 2026-10-20 07:21:28 +02:00
Arnaud Dartois 1cd4e2b4b5 fix(security): enforce resource isolation across API and hubs 2026-10-20 07:16:44 +02:00
Arnaud Dartois e2a7442175 fix(scheduler): separate eligibility from negative GPU scores 2026-10-20 02:31:17 +02:00
Arnaud Dartois ad2a582b63 build(gitea): reconstruct tests packaging images and release lanes (Refs #1)
Heimdall Gitea / Build and tests (push) Failing after 1m12s
Heimdall Gitea / Publish versioned release (push) Skipped
Heimdall Gitea / Build and tests (pull_request) Failing after 40s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-20 02:29:19 +02:00
Arnaud Dartois 8c6ecccf49 fix(pipeline): version detection profiles and resync camera configuration 2026-10-20 02:27:19 +02:00
Arnaud Dartois cef3434c3c fix(ops): confine local storage and repair maintenance jobs (Refs #1) 2026-10-20 02:27:03 +02:00
Arnaud Dartois 64a769c7de fix(agent): bound inference work and drain ONNX before disposal 2026-10-20 02:25:27 +02:00
Arnaud Dartois 58b6a1de9b feat(app): implement all open issues - camera access control, i18n, GPU, mDNS, site filtering
- Implement UserCameraAccess entity and CRUD API (issues #131, #133)
- Add CameraAccessPanel UI component for granular access management (issue #134)
- Implement camera toggle UI (issues #59, #199)
- Implement site filtering by user rights (issue #136)
- Implement Groups camera access assignment (issue #138)
- Implement audit logging for camera access changes (issue #140)
- Add comprehensive camera access test coverage (issue #141)
- Implement i18n/l10n localization infrastructure (issue #142)
- Implement OpenTelemetry metrics infrastructure (issue #14)
- Implement Agent GPU worker (issue #76)
- Implement Agent remote sensor mode (issue #75)
- Fix Docker GPU exposure in compose files (issues #76, #77)
- Fix mDNS divergence by extracting shared MdnsClient library (issue #81)
- Implement User email confirm/edit UI (issues #88, #89)
- Implement Persons UI (issue #11)
- Fix E2E test timing issues by increasing circuit delay

- Add MdnsClient library with unified unicast/multicast mDNS support
- Refactor MdnsProbeService and HomeKitMdnsProbe to use shared client
- Add GroupCameraAccess entity for group-based camera access
- Add comprehensive camera access test coverage
- Add i18n localization infrastructure with fr/en support
- Add Docker GPU exposure for NVIDIA/AMD/Intel
- Update Docker compose files with GPU device exposure
- Fix mDNS divergence between Central unicast and Agent multicast
- Fix E2E test timing issues with increased circuit delay

All 1700+ tests pass (unit + integration)
2026-10-11 21:23:16 +02:00
Arnaud Dartois 7c40524151 test(app): add comprehensive camera access control tests (issue #141)
- Add tests for UserCameraAccess CRUD operations (Create, Delete, Update, List)
- Add tests for GroupCameraAccess CRUD operations (Add, Remove, List)
- Add tests for site filtering by user access rights
- Fix test issues: camera navigation property setup, group/camera ID matching
- Add InternalsVisibleTo for test access to internal methods
- All 1727 tests pass
2026-10-11 12:04:45 +02:00
Arnaud Dartois e4586c8c1c feat(app): add site filtering by user access rights (issue #136)
- GetSitesQuery now accepts optional UserId parameter
- GetSitesHandler filters sites by user's accessible site IDs via ICameraAccessService
- SitesController.List passes current user ID for RBAC filtering
- Non-admin users only see sites they have access to via UserCameraAccess/UserSite
- Admin users see all sites (ICameraAccessService handles admin bypass)
- Updated GetSitesHandlerTests with ICameraAccessService mock
- All 1700+ tests pass
2026-10-10 22:29:07 +02:00
Arnaud Dartois 80e21d63e6 fix(tests): repair PersonsController integration tests and fix EF concurrency on RegisterFace
- Add DbUpdateConcurrencyException to SaveChangesWithRetryAsync transient check
- RegisterFaceHandler adds KnownFace via DbContext Set to avoid phantom UPDATE
- Validate empty embedding (400) before person existence check
- CreateViewerClientAsync bootstraps admin first so 2nd user is Viewer
- Rename GetAll_WithViewerAuth test to match PersonRead permission on Viewer
- PersonsControllerTests: all 20 tests green
2026-10-10 19:47:09 +02:00
Arnaud Dartois c45ee9f9aa fix(tests): use correct icon button index in UsersPage tests after camera access button added 2026-10-10 18:42:36 +02:00
Arnaud Dartois a5f1d0ff74 test(api): add integration tests for PersonsController
- Add CreateViewerClientAsync helper to TestHelpers
- 12 new integration tests: faces CRUD, vehicles, events filter,
  permissions (Viewer forbidden), cascade delete, audit logging
2026-10-10 17:50:43 +02:00
Arnaud Dartois 6f2530061f feat(ui): add Persons link to MainLayout navigation
- Add 'Personnes' link with People icon in nav menu
- 2 NavigationTests: link visibility and active state
2026-10-10 17:50:33 +02:00
Arnaud Dartois 9bc5c1941c feat(ui): add PersonDetailPage (/persons/{id})
- Header with photo, name, category, watchlist badge, notes
- Face carousel (MudCarousel) with thumbnails
- Associated vehicles table
- 30-day FaceRecognized event history (client-filtered by name)
- Edit/Delete actions with PersonFormDialog
- 10 bUnit tests
2026-10-10 17:50:22 +02:00
Arnaud Dartois 3ef23aabab feat(ui): add PersonsListPage (/persons)
- Card grid with photo, name, category, face count, watchlist badge
- Search bar + Known/Unknown filter
- Create dialog via PersonFormDialog
- 9 bUnit tests
2026-10-10 17:50:02 +02:00
Arnaud Dartois 5a548ab3d9 feat(ui): add PersonFormDialog shared component
- Reusable create/edit dialog for person management
- 4 bUnit tests: validation, create, edit, server error
2026-10-10 17:49:46 +02:00
Arnaud Dartois 5ce13649b0 feat(app): add audit logging to person handlers
- Add AuditLog entries to CreatePerson, UpdatePerson, DeletePerson,
  RegisterFace, DeleteFace handlers
- Extend application unit tests to verify audit log creation
2026-10-10 17:49:26 +02:00
Arnaud Dartois eabea58353 fix: narrow _dbFactory type to TestDbContextFactory to fix CA1859
The 7 failing test files used IDbContextFactory<AppDbContext> for a field
that's always initialized with TestDbContextFactory. Narrowing to the
concrete type satisfies the analyzer and matches the pattern already used
in 5 other tests in the same folder.

Fixes: AgentFailoverJobTests, BusinessEntityPersistenceTests,
AnalysisJobDispatcherJobTests, AnalysisJobSchedulerServiceTests,
AgentDiscoveryServiceTests, CameraAssignmentServiceTests,
CameraEventServiceTests
2026-10-10 13:46:12 +02:00
Arnaud Dartois e49b0d73aa feat(c cameras): enforce camera-level access filtering in GetCamerasBySite and GetCamera (#179) 2026-08-30 10:09:25 +02:00
Arnaud Dartois eef8c95d98 feat(sites): suppression de site en cascade — agents et caméras (#177) 2026-08-30 09:49:17 +02:00
Arnaud Dartois e6e8690588 feat(security): add ICameraAccessService for granular per-user camera access control (#178) 2026-08-30 09:48:47 +02:00
Arnaud Dartois acf3a4304c fix(ci): réduire artifact build + corriger URL YOLO ONNX (#181) 2026-08-30 09:45:37 +02:00
Arnaud Dartois b97d3bec11 feat(security): enforcement — filtrage caméra dans les endpoints sensibles (#175) 2026-08-27 20:28:41 +02:00
Arnaud Dartois 0f47236c08 feat: journal d'audit complet + auto-update agent natif & Docker (#92 #96 #97) 2026-08-27 18:56:57 +02:00
Arnaud Dartois be05bdabcf fix(mapping): corriger AgentExtensions.ToResponse — ajouter GPU fields manquants
fix(mapping): corriger AgentExtensions.ToResponse — ajouter GPU fields manquants

La CI était cassée sur main avec 20 erreurs CS1503 dans AgentExtensions.cs.
Le constructeur AgentResponse a été étendu avec les champs GPU mais
le mapping ToResponse() ne les passait pas.

Fixes le build cassé sur main et débloque les PRs en attente.
2026-08-27 15:02:17 +02:00
Arnaud Dartois 4b3068e12f feat(agent): align FrameAnalyzerService with spec §16 — IntraOpNumThreads, MinConfidence, model path (#169) 2026-08-27 00:36:03 +02:00
Arnaud Dartois e0290c8a1b feat(db): partitionnement camera_events + gestion automatique des partitions mensuelles (#164) 2026-08-27 00:31:12 +02:00
Arnaud Dartois 91bf33f794 feat(agent): mode analyse distant — frames vers broker avec fallback local (#158) 2026-08-27 00:07:17 +02:00
Arnaud Dartois 6eae4eea2f feat(agent): détection GPU + heartbeat étendu + badges Admin UI (#160) 2026-08-26 23:52:16 +02:00
Arnaud Dartois ca43c6d28e feat(analysis): scheduler de jobs d'analyse avec routage par capacités, priorités et dead-letter (#159) 2026-08-26 23:44:38 +02:00