docs: align spec identity roles (#395)
Heimdall Gitea / Detect CI scope (pull_request) Successful in 6s
Heimdall Gitea / Build and tests (pull_request) Skipped
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (pull_request) Skipped
Heimdall Gitea / Publish versioned installer release (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Successful in 2s

This commit is contained in:
arnaud.dartois committed 2026-11-13 12:02:37 +01:00
1 parent 4898d8343d
commit b796455234
2 files changed
+3 -3

No files matched your search

+2 -2
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,7 +117,7 @@ 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
+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.