Repository navigation
fix: enforce origin protection on virtual repository publications - #52
Merged
Merged
Conversation
This was referenced Nov 13, 2026
servicememeai
marked this pull request as ready for review
November 13, 2026 11:39
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.
修复虚拟库未继承源库文件保护的原生写入漏洞。C/Go 将虚拟变更映射至源路径,在源 Branch 锁下重新检查映射及受保护 File ID;覆盖、删除、父目录操作和历史恢复拒绝,保留受保护版本的原生回同步及可编辑副本仍可用。
不增加表、缓存或 Checkout 租约行为。配套 Hub #102 防止源库定版接受尚未合并的旧版本,Docker #55 提供真实验收。Go 保护/Guard 定向测试、C cf-lock 及源码快速检查通过。
验证:固定 Server
2df0ba1a9645da519177000fb573d1d504388adb、Hub1a7415b674dea5cb16cba32777ea045762a1ebf4、Docker4cba65f2ea9c325c7a40a9061c13604335bc8563的 AMD64 完整流程 全部通过,含完整 C/Go/Web 构建、发行包/镜像、存储与挂载测试、16 项基础原生场景及 11 组扩展验收。18 个源库/虚拟库 Go/C 并发场景覆盖两种锁顺序,普通库零 Protection SQL。ARM64 同样通过,10,000 文件下保护库更新 P95 47.0 ms、500 文件提交 447.1 ms;AMD64 1,000 文件下分别为 15.3 ms、663.5 ms。均为隔离工程数据。未推送 Registry,未部署 DEV/PROD;Etech/SSO 和实际 Windows Agent2 验收另行完成。