Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

security(data): DELETE 会话反而把完整 transcript 持久化落盘——无 retention/purge/按人清除,明文宽权限无限留存

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
rust
领域
api, backend, security

调研方向

Start in src/http/handlers.rs:650-683 to trace DELETE behavior, then inspect src/storage/local.rs:29-34 and the shadow-git, checkpoint, and memory storage paths. Review config_file.rs for the existing 0600 permission precedent and confirm the absence of retention handling with the repository's retention search. Done means DELETE purge leaves no session copy in sessions/, shadow-git, or memory, while stored session data has restricted permissions and retention behavior is defined.

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

描述

场景 gap 单(okguitar 提报)· 优先级 P1 · 依赖:无

基线 HEAD = 9165b9a0。

Summary

  • DELETE /sessions/:id 在移除会话后调用 storage.save_transcript 把完整 transcript 持久化(src/http/handlers.rs:650-669,Goal 396 语义「会话结束即落盘」);tombstone(:670-683)只挡冷加载复活,JSONL 本体留在 <workspace>/.recursive/sessions/<id>.jsonl(src/storage/local.rs:29-34)。「删除」操作反而多写一份全文。
  • 全仓 grep -ri retention src/ 零命中——无 retention/TTL 配置项;无「按用户删除」API(没有用户概念)。
  • 会话/记忆/scratchpad 文件按进程默认 umask(通常 0644)明文落盘;set_permissions(0600) 只用于 secrets.env(config_file.rs)。

影响

企业办公/个保法/GDPR 场景:员工离职或数据主体删除请求无执行路径;公司代码与业务对话在服务器磁盘无限期明文留存;共享主机上其他本地账户可读。

建议

  1. DELETE 提供 purge=true 真删语义(或独立 purge 端点),连带 shadow-git/checkpoint 副本;
  2. session 数据文件 0600;
  3. 引入 per-owner retention(天数)后台清理。

验收:DELETE purge 后磁盘上无该会话任何副本(sessions/、shadow-git、memory)。

主要语言
Rust
星标
4
派生
0
平均合并
5 小时 32 分钟
30 天内合并 PR
7

环境准备

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

从这里开始

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

jeffkit/recursive 的其他 Issue

查看 jeffkit/recursive 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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