禁止归档项目绕过托管运行限制 #21

Merged
xhgit merged 1 commits from codex/block-archived-runtime into main 2026-11-09 23:25:00 +08:00
Owner

人工发现的问题

  • 用已审核且有测试套餐的项目复现:归档后直接调用镜像发布接口仍返回 HTTP 200 并生成排队部署,绕过页面的归档限制。

修复内容

  • 发布、回滚、运行重启和域名开通共用归档校验。部署执行阶段重新检查,阻止归档前排队但尚未执行的发布。
  • 排队恢复和真正执行恢复都会检查归档状态,暂停操作仍可执行。

验证

  • HostingIntegrationTest 10 项通过,新增覆盖归档后镜像、源码、回滚、已排队部署及恢复和暂停。
## 人工发现的问题 - 用已审核且有测试套餐的项目复现:归档后直接调用镜像发布接口仍返回 HTTP 200 并生成排队部署,绕过页面的归档限制。 ## 修复内容 - 发布、回滚、运行重启和域名开通共用归档校验。部署执行阶段重新检查,阻止归档前排队但尚未执行的发布。 - 排队恢复和真正执行恢复都会检查归档状态,暂停操作仍可执行。 ## 验证 - HostingIntegrationTest 10 项通过,新增覆盖归档后镜像、源码、回滚、已排队部署及恢复和暂停。
xhgit added 1 commit 2026-11-08 23:39:33 +08:00
Enforce archive state for runtime activation
Verify control plane / verify (push) Canceled after 0s
Verify control plane / verify (pull_request) Canceled after 0s
bbd5eeb605
xhgit merged commit 77db572895 into main 2026-11-09 23:25:00 +08:00
xhgit deleted branch codex/block-archived-runtime 2026-11-09 23:25:00 +08:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: xhgit/webup-cloud#21