fix(security): implement IDataProtector-based credential encryption for CameraCredentials

- Add ICredentialProtector/DataProtectorCredentialProtector using ASP.NET Core Data Protection
- Register AddDataProtection + ICredentialProtector in Infrastructure DI
- Update CameraCredentials XML comments to reference real protector
- Add SetCredentialsAsync to CameraService with encryption
- Update ICameraService interface
This commit is contained in:
Arnaud Dartois committed 2026-07-17 20:07:03 +00:00
1 parent 12a1ff2737
commit 076bc58e93
5 files changed
+94 -6

No files matched your search

@@ -10,4 +10,5 @@ public interface ICameraService
Task<ServiceResult<PagedResult<CameraResponse>>> ListBySiteAsync(Guid siteId, int page, int pageSize, CancellationToken ct);
Task<ServiceResult<CameraResponse>> UpdateAsync(Guid id, UpdateCameraRequest request, CancellationToken ct);
Task<ServiceResult> DeleteAsync(Guid id, CancellationToken ct);
Task<ServiceResult> SetCredentialsAsync(Guid cameraId, Domain.Entities.CameraCredentials credentials, CancellationToken ct);
}