Agent Manager v2.1 回调改为 HMAC 事件头后,Manager 只认 service token 会导致回调被拒 #67

Closed
opened 2026-05-26 16:34:15 +00:00 by chenchen · 1 comment
Owner

问题:Agent Manager v2.1 文档要求 Runtime 回调携带 X-Agnet-Event-Id / X-Agnet-Timestamp / X-Agnet-Signature,但 Manager 原先只支持 X-Agnet-Service-Token 或 Authorization: Bearer。

影响:对方按新文档联调时,/api/agnet/callbacks/swarm-events 会返回 CALLBACK_UNAUTHORIZED,事件、artifact 和 timeline 无法落库。

处理:Manager 本地已补 HMAC-SHA256 验签,同时保留旧 service token 方式兼容;已补接口测试。

状态:本地已修复,待提交、上线和生产接口验证。

问题:Agent Manager v2.1 文档要求 Runtime 回调携带 X-Agnet-Event-Id / X-Agnet-Timestamp / X-Agnet-Signature,但 Manager 原先只支持 X-Agnet-Service-Token 或 Authorization: Bearer。 影响:对方按新文档联调时,/api/agnet/callbacks/swarm-events 会返回 CALLBACK_UNAUTHORIZED,事件、artifact 和 timeline 无法落库。 处理:Manager 本地已补 HMAC-SHA256 验签,同时保留旧 service token 方式兼容;已补接口测试。 状态:本地已修复,待提交、上线和生产接口验证。
chenchen added this to the 2026-05-27 至 2026-05-28:全链路联调与问题收敛 milestone 2026-05-26 16:34:15 +00:00
xiongwei started working 2026-05-27 03:14:52 +00:00
Author
Owner

已上线验证。

  • Manager 版本:1.4.5
  • Commit:50b76dd
  • 部署:生产 VM 远端 git pull 后 Docker 重建,容器 healthy
  • 验证:本地 HMAC callback 定向测试和 go test 通过;线上 /api/status 返回 1.4.5。当前生产外部 Runtime 未配置,因此真实 Runtime 回调链路需等待 Runtime 接入后再联调。
已上线验证。 - Manager 版本:1.4.5 - Commit:50b76dd - 部署:生产 VM 远端 git pull 后 Docker 重建,容器 healthy - 验证:本地 HMAC callback 定向测试和 go test 通过;线上 /api/status 返回 1.4.5。当前生产外部 Runtime 未配置,因此真实 Runtime 回调链路需等待 Runtime 接入后再联调。
xiongwei worked for 29 minutes 2026-05-27 03:44:01 +00:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Total Time Spent: 29 minutes
xiongwei
29 minutes
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: taijibaga/heicode-mananger#67