Commit Graph
55 Commits
Author SHA1 Message Date
Arnaud Dartois cb1a4dd2ad Merge remote-tracking branch 'origin/main' into audit/snapshot-gallery
Heimdall Gitea / Build and tests (pull_request) Failing after 2m41s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
# Conflicts:
#	tests/Heimdall.IntegrationTests/Controllers/EventsControllerTests.cs
2026-10-20 21:06:20 +02:00
Arnaud Dartois b3a705bc87 Merge remote-tracking branch 'origin/main' into audit/snapshot-gallery 2026-10-20 07:41:41 +02:00
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 85606a58d9 Merge remote-tracking branch 'origin/main' into audit/snapshot-gallery 2026-10-20 07:36:43 +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 0042bf6abc feat(gallery): add snapshot filters and paging 2026-10-20 07:32:56 +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 084edc313c fix(pipeline): reconcile camera assignments after failover 2026-10-20 07:27:31 +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 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 a37b899b4a docs(audit): record runner DNS retry recovery [skip ci] 2026-10-20 07:03:16 +02:00
Arnaud Dartois 4885d47592 docs(audit): normalize Gitea evidence formatting
Heimdall Gitea / Build and tests (pull_request) Failing after 1m53s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
Heimdall Gitea / Build and tests (push) Failing after 3m26s
Heimdall Gitea / Publish versioned release (push) Skipped
2026-10-20 07:00:56 +02:00
Arnaud Dartois 9371270b99 fix(ci): scan seekable image archives and record Gitea reception blockers
Heimdall Gitea / Publish versioned release (pull_request) Canceled after 0s
Heimdall Gitea / Publish versioned release (push) Canceled after 0s
Heimdall Gitea / Build and tests (push) Canceled after 1m28s
Heimdall Gitea / Build and tests (pull_request) Canceled after 2m19s
2026-10-20 07:00:28 +02:00
Arnaud Dartois b6701fe30e fix(ci): bootstrap pinned Node before checkout and align SDK locks
Heimdall Gitea / Build and tests (push) Failing after 1m45s
Heimdall Gitea / Publish versioned release (push) Skipped
Heimdall Gitea / Build and tests (pull_request) Failing after 1m58s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-20 06:56: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 cef3434c3c fix(ops): confine local storage and repair maintenance jobs (Refs #1) 2026-10-20 02:27:03 +02:00
arnaud.dartoisandArnaud Dartois 21f0530b6c chore : Audit incomplete features suite implémentation (#1)
- Nettoyage
- Preparation correction fonctionnalité manquante

---------

Co-authored-by: Arnaud Dartois <nonobis@gmail.com>
Reviewed-on: #1
2026-10-20 02:12:47 +02:00
Arnaud Dartois d2a2d6c0c1 wiip 2026-10-10 15:28:34 +02:00
Arnaud Dartois 4b954be09c feat(mobile): Application mobile Android — Kotlin + Jetpack Compose (#19) (#182) 2026-08-30 10:09:43 +02:00
Arnaud Dartois 2e188e4dda chore: auto-commit 2026-08-12 10:00 [Heimdall] docs/MASTER_SPECIFICATION.md, docs/README.md, docs/codeproject-ai.md, docs/signalr-usage.md, docs/specs.md… 2026-08-12 10:00:44 +02:00
Arnaud Dartois 8e14d72a9a chore: remove .opencode submodule, now using global opencode-infra plugin
All shared agents, skills, commands, rules are now provided by the
opencode-infra plugin installed globally at ~/.config/opencode/plugins/.
No per-project configuration needed.
2026-08-01 07:58:35 +00:00
Arnaud Dartois afc1b2e032 fix: resolve demo admin seeding, Sentry DSN pass-through, and add startup diagnostics
- Replace IsDevelopment() guard with Seed:DemoOnStartup config flag
  (default: true, disable via SEED__DEMO_ON_STARTUP=false)
- Add Seed:AdminLogin (env SEED__ADMIN_LOGIN) to customize demo admin email
- Add Seed:AdminDisplayName (env SEED__ADMIN_DISPLAYNAME) to customize display name
- Add Sentry__Dsn env var to docker-compose files (matches .env convention)
- Increase Heimdall log level to Debug for startup diagnostics
- Add [DIAG] startup logs for Sentry DSN, Data Protection keys, environment
- Add Data Protection key directory diagnostic in DependencyInjection
2026-07-29 14:21:16 +00:00
Arnaud Dartois 6b2e3d8027 docs: add admin bootstrap first-launch design spec 2026-07-28 11:25:31 +00:00
Arnaud Dartois 219d9b73b6 feat(ui): polish visuel global — Font Awesome, composants partagés, fix MudMenu 2026-07-27 20:11:31 +00:00
Arnaud Dartois 03cc53877c chore: update opencode submodule — SkillServer v1.1.0 force-publish + publish-agent fix 2026-07-27 18:49:08 +00:00
Arnaud Dartois f9be0f1e0d feat: implémenter SignalR hubs (Monitoring, Notifications, Admin) + système de notifications complet
SignalR Hubs:
- MonitoringHub (/hubs/monitoring) — statuts agents/caméras/stockage/GPU jobs
- NotificationsHub (/hubs/notifications) — notifications in-app badge temps réel
- AdminHub (/hubs/admin) — broadcast changements config (Admin only)

Notification System:
- Nouvelles entités: Notification, NotificationTemplate, UserNotificationConfig
- CQRS/MediatR: 6 handlers (list, unread, mark-read, mark-all, config get/update)
- Infrastructure: NotificationService orchestrator + EmailService + GotifyService
- Rate limiter IMemoryCache (20 events/min/camera/type)
- Hangfire jobs: SendNotification, DailyDigest, WeeklyDigest
- NotificationsController API (6 endpoints)
- Blazor UI: NotificationsPage + NotificationBadge
- Migration AddNotifications (3 nouvelles tables)
- 644 nouveaux tests (Domain: 131, Application: 321, Infra: 151, Integration: 120, +autres)
2026-07-26 20:45:35 +00:00
Arnaud Dartois 79d60abca3 docs: add test coverage design doc and implementation plan 2026-07-23 16:31:22 +00:00
Arnaud Dartois df644c8b2a docs(cqrs): update spec and implementation docs
- Add CQRS architectural decision (D7) to Master Spec
- Update implementation.md with CQRS migration phase
- Update readme to reflect CQRS/MediatR architecture
2026-07-22 20:01:55 +00:00
Arnaud Dartois 31f2056d48 feat(agents): add global agents page, reusable components, KPIs, admin-only security 2026-07-19 07:25:27 +00:00
Arnaud Dartois 2ff355e567 feat(auth): add default groups, claims-based authorization and update spec 2026-07-19 07:04:25 +00:00
Arnaud Dartois 7e66bb4fbb feat(discovery): add camera detection pipeline inspired by Strix
Add complete camera discovery and stream testing specification,
Domain entities, enums, DTOs, Application interfaces, and EF Core
configurations for automated ONVIF/mDNS/HTTP/ARP camera detection.

- 4 new enums: CameraDiscoveryMethod, DetectedCameraType,
  StreamProtocol, CameraCapability (flags)
- Camera entity extended with 15+ discovery/test fields
- New entities: CameraDiscoveryResult, DiscoveredStreamUrl
- DTOs: ProbeRequest/Response, StreamTestRequest/Session, etc.
- Interface: ICameraDiscoveryService (8 methods)
- EF Core configurations for all new tables + columns
- Full spec doc: docs/specifications/detection-camera.md (16 sections)
- 145 tests pass, 0 warnings

Inspiré de Strix (github.com/eduard256/Strix) — moteur de
découverte de flux IP supportant 3600+ marques, 100K+ patterns.
2026-07-18 21:15:05 +00:00
Arnaud Dartois 5b656286e5 refactor: replace MinIO with Alarik S3-compatible storage
Alarik is a drop-in S3-compatible replacement requiring no application
code changes. All S3 APIs (upload, download, list, delete, multipart)
are fully supported.
2026-07-18 11:40:03 +00:00
Arnaud Dartois 23ead64795 docs: update implementation.md with current MVP status
- Mark ✅/⏳ for all 23 phases based on actual implementation
- Add stats: 83 files, 34 tests, 13 pages, 30+ endpoints
- Clearly separate done vs v2/v3 (hardware-dependent)
- Document stack choices (no MediatR at MVP)
2026-07-17 19:45:40 +00:00
Arnaud Dartois 1bd6de1d48 docs: detail fonctionnel des etapes 2 a 7 avec scenarios concrets
Chaque phase des Etapes 2 a 7 a maintenant des scenarios de test detailles, des exemples requetes/reponses HTTP, et des sections 'Fonctionnel a la fin de cette phase' comme pour l'Etape 1. Ajout de schemas JSON pour chaque endpoint, scenarios utilisateur complets (detection avec dedup, live video, notifications, retention, mobile).
2026-07-16 20:14:06 +00:00
Arnaud Dartois 150275a47a docs: detail chaque phase de l'etape 1 avec scenarios fonctionnels concrets
Chaque phase de l'Étape 1 (MVP Multi-Site) a désormais une section '✅ Fonctionnel à la fin de cette phase' qui décrit EXACTEMENT ce qui marche, avec des exemples de requêtes/réponses HTTP et le scénario de bout en bout.
2026-07-16 20:07:40 +00:00
Arnaud Dartois eb59ffd4f6 refactor: split implementation in 2 stages — MVP multi-site then business features
Étape 1 (Phases 1-12) : Foundation + API multi-site (Sites, Agents, Auth) + Agent Docker avec heartbeat. Pas de caméra, pas d'IA, pas de vidéo. L'objectif est d'avoir N sites avec N agents enregistrés, heartbeats, status Online, le tout via API.

Étape 2 (Phases 13-25) : on ajoute le métier par-dessus — caméras, vidéo, IA, notifications, UI, mobile.
2026-07-16 20:05:19 +00:00
Arnaud Dartois 098a05aceb fix: move mobile app to last phase (Phase 23)
L'application Kotlin est réalisée en dernier, après le Production Hardening.
2026-07-16 20:01:52 +00:00
Arnaud Dartois 9fff2ec917 fix: mobile stack Kotlin (not Avalonia), agents Docker-only
Corrections après feedback utilisateur : stack mobile = Kotlin + Jetpack Compose (Android natif, WebRTC natif), Agents installés exclusivement via Docker (pas de binaire standalone).
2026-07-16 20:00:48 +00:00
Arnaud Dartois 5c8df8127b docs: master specification v2.0 consolidating 9 fragmented docs
Complete specification rewrite after deep review by 5 expert agents (council, security, db, ai, perf). Fixes 36 critical issues including: stationary object dedup (4-level), motion gate, Avalonia mobile stack, API+Web fusion, HMACSHA256 auth, partitioned Events table, Hangfire queue isolation.
2026-07-16 19:59:21 +00:00
Arnaud Dartois 6138795771 feat: switch mobile app from Avalonia UI to Kotlin + Jetpack Compose
- Complete rewrite of mobile-app.md: Kotlin 2.1+, Jetpack Compose 1.7+
- Clean Architecture: data/domain/presentation layers
- Ktor 3.0 HTTP client (replaces Kiota, Kotlin-native)
- WebRTC natif Android (SurfaceViewRenderer + PeerConnection)
- SignalR client Java Microsoft (compatible Kotlin)
- Hilt DI, Room cache, DataStore preferences, Coil images
- Firebase Cloud Messaging push notifications
- MVVM with StateFlow + collectAsStateWithLifecycle
- Compose Navigation (NavHost, sealed Screen routes)
- Tests: JUnit 5 + MockK + Turbine (Flow) + Compose UI Test
- CI/CD Gradle with lint + detekt + unit tests + APK signing
- GitHub Actions workflow dedicated to mobile
- Update implementation.md Phase 21 with new stack
- Update README.md references
2026-07-16 19:52:01 +00:00
Arnaud Dartois 32240da193 docs: add CodeProject.AI reference doc with full API, modules, perf
- Create docs/codeproject-ai.md with:
  - All 17 modules listed (Object Detection YOLOv5/v8, ALPR, Face, Scene...)
  - API endpoints with request/response examples
  - Pipeline flow diagram Heimdall → CodeProject.AI
  - Per-camera DetectionProfile filtering before API calls
  - Docker config with GPU passthrough and env vars
  - Performance benchmarks (GPU vs CPU vs RPi4)
  - Custom detection models (ipcam-general, ipcam-animal...)
  - Mesh multi-instance architecture
- Update implementation.md Phase 12 with CodeProject.AI deep link
- Add CodeProject.AI to README.md navigation
2026-07-16 19:43:34 +00:00
Arnaud Dartois 5073592cdb feat: per-camera detection profiles (person/vehicle/face/LPR per camera)
- Add CameraDetectionProfile model with per-camera toggles
  (DetectPerson, DetectVehicle, FaceRecognition, LicensePlateRecognition...)
- Add default profiles: Indoor, Outdoor, Stairwell, Parking
- Agent only runs YOLO classes matching enabled detection types
- Central skips face rec/LPR when disabled per camera
- Add detection-profile endpoints to Camera API
- UI: per-camera checkbox grid + profile presets
- Add ONVIF camera credentials (per-camera + per-site defaults)
- Add SharpOnvifClient + OnvifDiscovery NuGet references
- Add Imou camera protocol details: RTSP URLs, known issues,
  firmware blocking, activation procedure
2026-07-16 19:40:50 +00:00
Arnaud Dartois 2e6dcc6968 fix: login par email/MDP + 2FA, API Keys réservées aux Agents
- ui-pages.md : retirer écran 'Clé API' du login, ajouter champ 2FA (TOTP)
- auth-roles.md : ajouter 2FA optionnel, User.TwoFactorEnabled,
  API Keys = Agents uniquement, header clarifié
- implementation.md Phase 6 : +2FA endpoints, API Keys scope Agents
- signalr-usage.md : clarifier JWT pour humains, API Key pour Agents
2026-07-16 19:38:06 +00:00
Arnaud Dartois ed0e941617 docs: fix implementation phases alignment (14-23), complete missing phases
- Fix detailed phase numbering to match summary (was 5 phases off)
- Add Phase 14 (SignalR Hubs), 16 (Hangfire Agent InMemory),
  17 (Notifications), 21 (Mobile Android) — were missing in details
- Add Phase 15 (Hangfire Central) with NuGet, config, dashboard
- Each phase now has: Objectif, Tests, Libraries, code snippets
- All phases reference dedicated doc files for deep dives
- Summary and details now perfectly aligned (23/23)
2026-07-16 19:35:53 +00:00