重启服务前先验证项目归属 #20

Merged
xhgit merged 1 commits from codex/authorize-runtime-restart into main 2026-11-09 23:24:49 +08:00
Owner

人工发现的问题

  • 在本地隔离环境使用其他账户请求项目服务重启,接口在检查项目归属前返回审核状态。响应差异可被用来探测非本人项目的审核状态。

修复内容

  • 先检查项目和服务归属,再检查网站审核状态。非所有者统一收到项目不存在,所有者仍获得正确的封禁提示。

验证

  • IdentityIntegrationTest 13 项通过,新增真实 MVC、安全过滤器和数据库回归,覆盖非所有者与被封禁项目所有者。
## 人工发现的问题 - 在本地隔离环境使用其他账户请求项目服务重启,接口在检查项目归属前返回审核状态。响应差异可被用来探测非本人项目的审核状态。 ## 修复内容 - 先检查项目和服务归属,再检查网站审核状态。非所有者统一收到项目不存在,所有者仍获得正确的封禁提示。 ## 验证 - IdentityIntegrationTest 13 项通过,新增真实 MVC、安全过滤器和数据库回归,覆盖非所有者与被封禁项目所有者。
xhgit added 1 commit 2026-11-08 23:36:22 +08:00
Authorize service ownership before checking restart eligibility
Verify control plane / verify (push) Canceled after 0s
Verify control plane / verify (pull_request) Canceled after 0s
b5a2be3f9f
xhgit merged commit 24bc1e3284 into main 2026-11-09 23:24:49 +08:00
xhgit deleted branch codex/authorize-runtime-restart 2026-11-09 23:24:50 +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#20