diff --git a/docs/specs.md b/docs/specs.md index 4dc066e..3d54ed3 100644 --- a/docs/specs.md +++ b/docs/specs.md @@ -24,7 +24,7 @@ Heimdall is a modern self-hosted intelligent video surveillance platform. - Multi-site : 1 serveur Central + N Agents Docker distants - Live vidéo : relais RTSP de l’Agent vers MediaMTX, lecture navigateur WHEP/WebRTC; mesurer la latence avant d’annoncer une cible - IA locale : ONNX Runtime (GPU sur agents équipés, mutualisable inter-sites) + Ollama (LLM résumés) -- Espace utilisateur : Admin (global) + User (site-scope) +- Rôles humains : Admin, Supervisor et Viewer; permissions par rôle, avec contrôle distinct du périmètre site/caméra sur chaque ressource - Stockage : RustFS/S3 centralisé - Temps réel : SignalR (5 hubs) - Jobs planifiés : Hangfire (Central PGSQL + Agent InMemory) @@ -117,10 +117,10 @@ Enum: GpuAcceleration, ThemeMode ## Authentification — `docs/auth-roles.md` -- 2 types d'utilisateurs : Admin (tout) + User (N sites) +- 3 rôles : Admin, Supervisor et Viewer; les permissions viennent du rôle et l'accès aux sites/caméras est vérifié séparément selon la ressource - ASP.NET Core Identity + JWT + Refresh tokens - Permissions par Policy : Camera.Read, Admin.Manage... -- Scope site : un User ne voit que ses sites assignés +- Accès aux ressources : les services d’accès vérifient le périmètre site/caméra pour chaque opération; voir `docs/auth-roles.md` - Visibilité UI adaptée au rôle (menus, boutons) - Voir `docs/auth-roles.md` pour le détail complet diff --git a/skills/heimdall-identity/SKILL.md b/skills/heimdall-identity/SKILL.md index ba81822..ab78b50 100644 --- a/skills/heimdall-identity/SKILL.md +++ b/skills/heimdall-identity/SKILL.md @@ -7,7 +7,7 @@ description: Implement and review Heimdall account, password, session, email con Read `AGENTS.md`, the focused Gitea issue and [the Gitea ticket workflow](../gitea-ticket-workflow/SKILL.md), and the Identity wiring in `Infrastructure/DependencyInjection.cs` and `Web/Program.cs` before changing authentication. -When maintaining `docs/auth-roles.md`, verify its role names and default permission summaries against `Infrastructure/Security/AppPermissions.cs` and `Domain/Enums/UserRole.cs`. Heimdall has `Admin`, `Supervisor`, and `Viewer`; site/camera access is separately enforced through resource-access services, not represented by a generic `User` role. Keep the authentication summary in `docs/README.md` aligned with that guide and model. +When maintaining `docs/auth-roles.md` or identity summaries in `docs/specs.md`, verify their role names and default permission summaries against `Infrastructure/Security/AppPermissions.cs` and `Domain/Enums/UserRole.cs`. Heimdall has `Admin`, `Supervisor`, and `Viewer`; site/camera access is separately enforced through resource-access services, not represented by a generic `User` role. Keep the authentication summary in `docs/README.md` aligned with that guide and model. Verify identity model examples against `Infrastructure/Identity/IdentityAppUser.cs`, `Domain/Entities/UserSite.cs`, and `Infrastructure/Data/Configurations/UserSiteConfiguration.cs`. Keep ASP.NET Identity in Infrastructure; `UserSite` stores the user ID without an Identity navigation, and Infrastructure maps that foreign key.