[move / delete] Prevent / secure large operations

未关闭
#260 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
冷清
技术栈
javascript
领域
api, backend

调研方向

该 issue 未指定文件或测试。首先定位 move 和 delete 的 API 入口点,然后将它们的行为与 UI 的 100 个文件限制及转换到回收站的行为进行比较。在实现之前,确定针对大规模移动、root 重命名和直接删除的阈值与保护策略;完成时应覆盖这些已达成一致的情况。

由索引模型根据 Issue 内容生成。

描述

The UI will prevent user to move / delete more than 100 files (exact number still being defined). This is to prevent large scale undesired move or delete operations.

This could easily happen too via an API call. And here, there is no safeguard, API will execute. With the rise of agents and MCP, probably and risk is increasing a lot.

API consumer could easily:

  • fire a move from /project/en to something else (rename en root). This would rename the whole en tree with pretty serious impact. The large scale is not the only issue: this has an impact on the site logic itself
  • fire a delete of /project/en. UI converts the delete to a "move to trash". Directly using the delete api should be restricted or "safeguarded.

Not sure what is the best way to secure these operations.

主要语言
JavaScript
星标
6
派生
18
平均合并
9 小时 30 分钟
30 天内合并 PR
3

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

adobe/da-admin 的其他 Issue

查看 adobe/da-admin 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。