fix(安全): 一键部署/卸载/暴露公网加显式确认校验(v2.2.1) - #12
Merged
Merged
Conversation
- relay/deploy 需请求体 confirm 与版本号一致(前端两步确认:披露执行内容 + 键入版本号) - relay/uninstall、relay/expose、coyote/expose 需 confirm=true 二次确认 - README 增加安全披露段落(管理员鉴权/来源固定/最小权限/可回滚) - test_relay_pages 新增 8 项 confirm 校验回归(共 49 项全过)
👋 感谢贡献 CurrentCortex!@backrooms-yrc,你好!你的拉取请求 #12 已收到。 本次改动:7 个文件,+287 / -24 接下来会发生什么
期间你可以继续推送提交,机器人会自动跟进最新的改动。祝顺利合并! 🎉 |
🤖 AI 代码审查改动概述为中转服务器的部署/卸载/暴露公网接口增加后端 潜在风险
建议
整体实现与文档描述一致,测试覆盖了缺 confirm / 不匹配 / 匹配三种路径,可以合并。 以上内容由 AI 自动生成,仅供参考,最终以人工审查为准。 |
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.
响应插件市场安全审核的安全加固(功能完整保留,v2.2.0 → v2.2.1)。
变更
v3)确认才执行relay/deploy要求请求体confirm与版本号一致;relay/uninstall、relay/expose、coyote/expose要求confirm=true——绕过前端直接调用接口一律 400 拒绝require_plugin_scope)/ 来源固定可审计 / 部署不改防火墙 / 卸载完全可回滚 / 无隐蔽持久化test_relay_pages新增 8 项 confirm 校验回归测试
test_relay_pages:49/49 通过 ✅test_reply_seg:37/37 通过 ✅部署逻辑本身无任何改动,仅增加显式确认与披露。