[SEN] 支持 ONVIF Digest 与安全 Media 地址归一化 (#48) #49

Open
ila wants to merge 9 commits from agent/codex/48-sense-onvif-digest into agent/codex/46-sense-env-loader
Owner

关联工单:#48

结果

  • 从 Device Service 自动发现 Media Service。
  • 支持 ONVIF Digest(MD5/SHA-256、qop=auth),保留 Basic 兼容。
  • 跨主机 Media XAddr 固定回用户授权的 Device Service origin,禁止 HTTP 重定向。
  • 继续拒绝地址/Stream URI 中的凭据,未记录任何摄像机敏感信息。
  • Windows 包已重建。

验证

  • go test ./app/sense/adapters/onvif ./app/sense/admission:通过。
  • go test ./...:通过。
  • Go 1.26.5 Windows 前后端打包:通过(仅既有 webpack 体积警告)。
  • 真实摄像机:成功读取 2 个 Profile。
  • 最终 ZIP SHA-256:628CC85B009628C062ADB6F5125A2F89CF7501727042152D29D13A7AE6D3F888。
  • Wiki 镜像检查:通过。
  • git diff --check:通过。
  • 严格 Harness 被既有 #44 归档缺少“最终方案”章节阻塞,与本工单无关。

已知边界

真实设备 ONVIF 与 RTSP 使用不同账号,Sense 当前每台设备只保存一组凭据,因此接入结果为 profile_failed,但 ONVIF Profile 已成功读取。分离 ONVIF/RTSP 凭据需要独立安全工单。测试完成后 Sense 已停止。

关联工单:#48 ## 结果 - 从 Device Service 自动发现 Media Service。 - 支持 ONVIF Digest(MD5/SHA-256、qop=auth),保留 Basic 兼容。 - 跨主机 Media XAddr 固定回用户授权的 Device Service origin,禁止 HTTP 重定向。 - 继续拒绝地址/Stream URI 中的凭据,未记录任何摄像机敏感信息。 - Windows 包已重建。 ## 验证 - `go test ./app/sense/adapters/onvif ./app/sense/admission`:通过。 - `go test ./...`:通过。 - Go 1.26.5 Windows 前后端打包:通过(仅既有 webpack 体积警告)。 - 真实摄像机:成功读取 2 个 Profile。 - 最终 ZIP SHA-256:`628CC85B009628C062ADB6F5125A2F89CF7501727042152D29D13A7AE6D3F888`。 - Wiki 镜像检查:通过。 - `git diff --check`:通过。 - 严格 Harness 被既有 #44 归档缺少“最终方案”章节阻塞,与本工单无关。 ## 已知边界 真实设备 ONVIF 与 RTSP 使用不同账号,Sense 当前每台设备只保存一组凭据,因此接入结果为 `profile_failed`,但 ONVIF Profile 已成功读取。分离 ONVIF/RTSP 凭据需要独立安全工单。测试完成后 Sense 已停止。
ila added 9 commits 2026-08-13 11:52:50 +08:00
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin agent/codex/48-sense-onvif-digest:agent/codex/48-sense-onvif-digest
git checkout agent/codex/48-sense-onvif-digest
Sign in to join this conversation.