docs: align specification role summaries with identity (#396)
Heimdall Gitea / Detect CI scope (push) Successful in 4s
Heimdall Gitea / Build and tests (push) Skipped
Heimdall Gitea / Build and scan server image (push) Skipped
Heimdall Gitea / Build and scan agent image (push) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Skipped
Heimdall Gitea / Publish versioned installer release (push) Skipped
Heimdall Gitea / CI policy (push) Successful in 1s

Co-authored-by: Arnaud Dartois <admin@tordais.cc>
This commit was merged in pull request #396.
This commit is contained in:
arnaud.dartois authored and Arnaud Dartois committed 2026-11-13 12:07:01 +01:00
1 parent 4898d8343d
commit 91816fbf29
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -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
+1 -1
View File
@@ -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.