fix(dispatch): hub_relay 推送目标改绑定设备 id + MCP URL 真校验 - #2168
Merged
Conversation
安全探索 lane F12/F15 收口: - F15(功能 bug):dispatchRouteHubRelay 原把 InviterUserID 当 PushToDevice 键——byDevice 以 device_id 建键,hub_relay 活推送每次静默 miss,任务永远靠 outbox 重试。改传 task.EdgeDeviceID(空值保留 inviter 回退),测试记录 target id 并断言 dev-1 + 新增回退用例 - F12(P2):MCPServer.Validate 的 URL 校验从子串匹配升级为 url.Parse——强制 http/https、必须有 host、拒绝 userinfo/凭据参数;新增 ftp/无 host/裸主机名三用例 验证:model/dispatchsvc/handler 三包 go test 全绿;go vet 绿;git diff --check 干净 Co-authored-by: Cursor <cursor@vectorcontrol.tech>
DeliciousBuding
force-pushed
the
chore/cleanup-round-25
branch
from
September 1, 2026 00:17
4f9a889 to
2a3b0a4
Compare
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
范围(安全探索 lane F12/F15)
dispatchRouteHubRelay原来把InviterUserID当PushToDevice的键——byDevice以device_id建键,hub_relay 活推送每次静默 miss,任务只能靠 outbox 重试。改为传task.EdgeDeviceID(空值保留 inviter 回退);测试记录 target id 并断言dev-1+ 新增回退用例。MCPServer.Validate的 URL 校验从子串匹配升级为url.Parse——强制 http/https、必须有 host、拒绝 userinfo/凭据参数;新增 ftp / 无 host / 裸主机名三用例。验证
go testmodel / dispatchsvc / handler 三包全绿go vet绿;git diff --check干净