Make CameraAccessService admin membership checks asynchronous through EF Core, passing cancellation through the role lookup and camera/site queries. Update the filter contract and preserve the existing admin bypass and non-admin grants.
Disposable Compose from this source passed: /healthz 200 and unauthenticated /api/events 401. Project heimdall-7447-accept-20261107170319-23018 was torn down; containers, volumes, network and exact local tag heimdall:heimdall-7447-accept-20261107170319-23018-central verified absent.
## Summary
Make `CameraAccessService` admin membership checks asynchronous through EF Core, passing cancellation through the role lookup and camera/site queries. Update the filter contract and preserve the existing admin bypass and non-admin grants.
Closes #281
## Validation
- `dotnet test tests/Heimdall.Infrastructure.Tests/Heimdall.Infrastructure.Tests.csproj --filter 'FullyQualifiedName~CameraAccessServiceTests|FullyQualifiedName~CameraAccessAdminPostgresTests'` — passed, 26 tests including PostgreSQL admin/viewer authorization.
- `dotnet test tests/Heimdall.Web.Tests/Heimdall.Web.Tests.csproj --filter 'FullyQualifiedName~ResourceAccessTests'` — passed, 14 tests.
- `python3 scripts/ci/check-efcore-usage.py` — passed.
- Disposable Compose from this source passed: `/healthz` 200 and unauthenticated `/api/events` 401. Project `heimdall-7447-accept-20261107170319-23018` was torn down; containers, volumes, network and exact local tag `heimdall:heimdall-7447-accept-20261107170319-23018-central` verified absent.
CI checks are pending; this PR is not merged.
Focused workflow: `skills/camera-access-async-admin-check/SKILL.md`.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Make
CameraAccessServiceadmin membership checks asynchronous through EF Core, passing cancellation through the role lookup and camera/site queries. Update the filter contract and preserve the existing admin bypass and non-admin grants.Closes #281
Validation
dotnet test tests/Heimdall.Infrastructure.Tests/Heimdall.Infrastructure.Tests.csproj --filter 'FullyQualifiedName~CameraAccessServiceTests|FullyQualifiedName~CameraAccessAdminPostgresTests'— passed, 26 tests including PostgreSQL admin/viewer authorization.dotnet test tests/Heimdall.Web.Tests/Heimdall.Web.Tests.csproj --filter 'FullyQualifiedName~ResourceAccessTests'— passed, 14 tests.python3 scripts/ci/check-efcore-usage.py— passed./healthz200 and unauthenticated/api/events401. Projectheimdall-7447-accept-20261107170319-23018was torn down; containers, volumes, network and exact local tagheimdall:heimdall-7447-accept-20261107170319-23018-centralverified absent.CI checks are pending; this PR is not merged.
Focused workflow:
skills/camera-access-async-admin-check/SKILL.md.