Files
Heimdall/skills/group-access/SKILL.md
T
arnaud.dartois d12e16c6e5
Heimdall Gitea / Detect CI scope (push) Successful in 17s
Heimdall Gitea / Build and tests (push) Successful in 25m35s
Heimdall Gitea / Publish versioned release (push) Skipped
Heimdall Gitea / Build and scan server image (push) Successful in 15m3s
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Successful in 27m31s
Heimdall Gitea / Build and scan agent image (push) Successful in 16m55s
Heimdall Gitea / Publish Docker Hub latest tags (push) Successful in 39s
Heimdall Gitea / CI policy (push) Successful in 1s
docs: migrate work tracking to Gitea issues (#170)
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>
2026-11-06 14:11:28 +01:00

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

  1. Run focused Web tests for GroupsPageTests, HeimdallApiClientTests, and ResourceAccessTests. Assert API HTTP method/path, UI member identity and camera/site labels, and add/remove behavior.
  2. 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.
  3. 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.
  4. Record each project-unique local image tag before build. Retain shared upstream PostgreSQL/.NET runtime images; never use --rmi all or prune.
  5. Update the linked Gitea issue with the exact evidence and keep physical/deployment-only claims separate from local acceptance.