Refs #169 ## Changements - Remplace `todo.md` par les issues Gitea comme source de suivi; crée un skill dédié au format de ticket, aux labels, aux maquettes, à la liaison PR et à la clôture. - Met à jour les skills et guides qui pointaient vers le backlog supprimé. - Ajuste le plan CI et ajoute un test ciblé pour s’assurer que la suppression de `todo.md` ne devient pas un changement documentaire ignoré. ## Vérifications - `python3 scripts/ci/test_ci.py TestPlanTests` — 4 tests réussis. - `git diff --check` — réussi. - Aucun test .NET exécuté; le plan CI déclenche les suites pertinentes sur cette PR. La tentative de créer la taxonomie de labels dans Gitea a expiré côté API; le skill documente les règles, mais les labels doivent encore être créés et appliqués lorsque l’écriture API sera disponible. Reviewed-on: #170 Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2.1 KiB
name, description
| name | description |
|---|---|
| group-access | Implement and accept Heimdall group membership and camera grants through the Admin UI and protected API. |
Group membership and camera access
The Admin group editor is src/Heimdall.Web/Components/Pages/Admin/GroupsPage.razor.
Its API adapter is HeimdallApiClient; route templates must match
GroupsController. Member listing is GET /api/groups/{groupId}/users, add is
POST /api/groups/{groupId}/users/{userId}, and removal is
DELETE /api/groups/{groupId}/users/{userId}. Camera grants use the sibling
/cameras endpoints. Keep member selection name/email based in the UI; do not
ask administrators to copy opaque user IDs.
Authorization is additive: effective camera access is the union of active site-wide, direct, legacy, and live group grants, subject to role permissions and deleted-resource checks. Removing one grant must preserve another valid grant. Soft-deleted groups must stop granting access immediately.
Acceptance
- Run focused Web tests for
GroupsPageTests,HeimdallApiClientTests, andResourceAccessTests. Assert API HTTP method/path, UI member identity and camera/site labels, and add/remove behavior. - Build the source in a uniquely named disposable Compose project with generated PostgreSQL/JWT credentials, loopback port, named volumes, and a project-specific network. Bootstrap the first Admin through the setup API; create a group, add a member using the production route, read the member list, remove the member, and verify the empty list. Use only synthetic data.
- Install an EXIT cleanup trap before build/start. Tear down that exact project with volumes and orphans, verify there are no project containers, volumes, or networks, remove exact local image tags and verify they are absent, and delete generated secret files even if an assertion fails.
- Record each project-unique local image tag before build. Retain shared
upstream PostgreSQL/.NET runtime images; never use
--rmi allor prune. - Update the linked Gitea issue with the exact evidence and keep physical/deployment-only claims separate from local acceptance.