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 and Arnaud 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
Arnaud Dartois
3adb44449e
docs: restructure with README index, trim specs.md, replace Refit with Kiota
...
- Create docs/README.md as central navigation index with quick links
- Rewrite specs.md from 1473 to 253 lines — remove all content now
duplicated in dedicated files, keep only unique content (vision,
architecture, domain model, features, Docker, quality)
- Replace Refit with Kiota (Microsoft) in mobile-app.md:
- Kiota generates API client from OpenAPI spec
- IAuthenticationProvider for JWT
- CI/CD regeneration step
- Comparison table Kiota vs Refit
- All NuGet deps updated
2026-07-16 19:33:11 +00:00
Arnaud Dartois
2428e0ec2a
docs: add mobile app, auth roles, notifications, hangfire, signalr specs
...
- Add mobile-app.md: Android Avalonia UI app spec with 6 pages, WebRTC
via WebView bridge, SignalR real-time, offline cache, push notifications
- Add auth-roles.md: 2 user types (Admin + User), site-scoped permissions,
policy-based authorization, UI visibility per role
- Add notifications.md: Email SMTP (FluentEmail), Gotify push, Scriban
Markdown templates i18n editable from UI, per-user config
- Add hangfire-usage.md: Central PostgreSQL jobs (retention, cleanup,
digests) + Agent InMemory jobs (heartbeat, camera health, GPU watchdog)
- Add signalr-usage.md: 5 hubs (events, streaming, monitoring, notifications,
admin) with full hub code, group management, Agent SignalR connection
- Update implementation.md: 23 phases with mobile app (phase 21)
- Update specs.md: reference all new documentation files
2026-07-16 19:29:07 +00:00
Arnaud Dartois
32ba481da1
docs: restructure documentation with UI pages, fix implementation order
...
- Create docs/ui-pages.md with detailed descriptions of all 8 UI pages
(Login, Dashboard, Sites, Cameras, Persons, Events, Admin, Alerts)
including MudBlazor components, states, and tests per page
- Rewrite implementation.md with correct dependency order:
Auth → Sites → Agent Registration → ONVIF → Cameras → FFmpeg →
AI → Storage → Hangfire → Blazor (basic) → WebRTC → Live Video LAST
- Add Agent bootstrap flow with token registration
- Add two-tier AI pipeline (CPU pre-detect on Agent, GPU on Central)
- Add IMU camera protocol specifics and ONVIF network limitations
- Add GPU passthrough Docker documentation
- Add Blazor Server + WebRTC JS Interop pattern
- Add MinIO/S3 centralized storage model with bandwidth impact analysis
- Add SFU (MediaMTX) for multi-user WebRTC scenarios
2026-07-16 19:21:14 +00:00
Arnaud Dartois
bfb3e06bc1
feat: initialize .NET 10 Clean Architecture solution
...
Create Heimdall solution with 17 projects following Clean
Architecture for a maintainable and loosely coupled codebase.
src/ (9 projects):
- Domain, Domain.Primitives, Contracts (core layer, no deps)
- Application (ref. Domain) — CQRS/MediatR ready
- Infrastructure (ref. Application + Domain) — EF Core
PostgreSQL ready
- Api, Web (Blazor), Agent, Workers (hosts, ref. Application +
Infrastructure)
tests/ (8 projects):
- xUnit + Shouldly + NSubstitute + bUnit (Web.Tests)
- One test project per source project (Domain -> IntegrationTests)
Config: Directory.Build.props (Nullable, ImplicitUsings,
TreatWarningsAsErrors)
2026-07-16 19:09:28 +00:00
Arnaud Dartois
0680f832a5
docs: initial spec
2026-07-16 20:19:11 +02:00