Files
Heimdall/skills/site-camera-credentials/SKILL.md
T
arnaud.dartois 5b1255ad80
Heimdall Gitea / Detect CI scope (push) Successful in 27s
Heimdall Gitea / Build and tests (push) Successful in 20m48s
Heimdall Gitea / Publish versioned release (push) Skipped
Heimdall Gitea / Build and scan server image (push) Successful in 7m28s
Heimdall Gitea / Build and scan agent image (push) Successful in 11m12s
Heimdall Gitea / Publish Docker Hub latest tags (push) Successful in 1m59s
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Successful in 19m43s
Heimdall Gitea / CI policy (push) Successful in 2s
Fix camera access and related UI issues (#311)
Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2026-11-08 21:19:00 +01:00

1.5 KiB

name, description
name description
site-camera-credentials Maintain the per-site camera credential API and its Site Detail and Cameras page flows.

Site camera credentials

The Web client calls api/sites/{id}/credentials from both SiteDetail.razor and CamerasPage.razor. Keep the GET, POST, and DELETE endpoints in SitesController aligned with those client paths. Apply the existing Site.Read or Site.Write policy and the global site resource-access filter to every credential route.

Credential passwords are write-only. SiteCredentialResponse contains only the credential ID, site ID, label, username, and timestamps; never return, render, or log the stored password. Use the Application handlers and EF Core through the existing application context for persistence.

Change and acceptance workflow

  1. Verify the client path and controller route agree for all three methods.
  2. Test a site with no credentials and a site with a credential in both /sites/{id} and /sites/{id}/cameras; distinguish a failed request from a normal empty list.
  3. Exercise add/list/delete with synthetic credentials. Assert the response and list never contain the submitted password.
  4. Verify unauthenticated requests are rejected and users without access to the site receive a forbidden response.
  5. Run focused Web and PostgreSQL integration tests, then follow compose-disposable-recipe with an isolated Central/PostgreSQL project. Record exact project resources and local image tags, and verify their removal after teardown.