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
Co-authored-by: Arnaud Dartois <admin@tordais.cc>
1.5 KiB
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
- Verify the client path and controller route agree for all three methods.
- 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. - Exercise add/list/delete with synthetic credentials. Assert the response and list never contain the submitted password.
- Verify unauthenticated requests are rejected and users without access to the site receive a forbidden response.
- Run focused Web and PostgreSQL integration tests, then follow
compose-disposable-recipewith an isolated Central/PostgreSQL project. Record exact project resources and local image tags, and verify their removal after teardown.