Files
Heimdall/skills/group-access/SKILL.md
T
arnaud.dartois 636154572b
Heimdall Gitea / Detect CI scope (push) Successful in 6s
Heimdall Gitea / Build and tests (push) Successful in 19m19s
Heimdall Gitea / Publish versioned release (push) Skipped
Heimdall Gitea / Build and scan server image (push) Successful in 6m13s
Heimdall Gitea / Build and scan agent image (push) Successful in 14m44s
Heimdall Gitea / Publish Docker Hub latest tags (push) Successful in 1m48s
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Successful in 19m9s
Heimdall Gitea / CI policy (push) Successful in 10s
Complete remaining Heimdall features and acceptance
Merge pull request #138

Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2026-11-06 11:14:49 +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 todo.md with the exact evidence and keep physical/deployment-only claims separate from local acceptance.