Repository navigation
fix(remote): 限制文件与事件资源并绑定实际 SSH 目标 - #189
Merged
Merged
Conversation
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.
关联 Issue
Refs 1lck/Lithe-IDEA#2231
问题与改动
远程文件保存可能经过工作区下的符号链接,读取、目录响应和监听队列缺少完整预算;SSH 别名变化后,原目标的信任与保留会话凭据也可能被错误复用。本 PR 把保存边界、资源预算和实际目标核验放在共享 Core,桌面端接入由关联 PR 完成。
guardedWrites时明确拒绝保存。revision,暂存前后复查并用目录锁协调 Lithe 写者,新建文件原子拒绝覆盖。不遵守锁的外部写者在最终检查与 rename 之间仍有竞态,本项仅缓解。TooLarge,后续请求仍能回复。watch/walk 增加路径字节预算,原始 watcher 队列限制 2048 条及 1 MiB,溢出要求重扫。ssh -G预读覆盖配置,也不降低用户主机密钥校验策略。禁用连接复用以获取本次认证证据。--target-identity --state-dir;同一流先报告身份,再接收客户端选定的会话键,之后才进行令牌握手。标记不是硬件身份,复制同账户同路径的状态也会复制身份。sessionBinding绑定实际身份、完整显式路由和最终服务状态。只有旧记录 binding 精确匹配才发送其 key/token;legacy、mismatch 和无法核验的路由创建新会话,原记录不消费。resumeConsumed告知桌面端是否可以删除原记录。Draft 阻塞:当前不能直接发版
-E身份日志只限制读取 64 KiB,未限制 OpenSSH 持续写入。 连接可能继续持有已 unlink 文件,长期占磁盘。替换为跨平台命名管道的补丁被自动审批拒绝,未应用;本 PR 未宣称该资源问题已修复。复现与根因
1761f63(feat(remote): 远程工作区信任按目标与主机真实路径记录(S01/S02/S04) #140,远程信任)、edd0933(feat(remote): keep or end host programs when a connection closes (Refs 1lck/Lithe-IDEA#2231) #160,保留会话)。验证
tests::remote_sessions::26 项消费者通过。-race通过,覆盖绑定桥接、凭据保留、重连信任、文件与容器工作树消费者。更新到最新 main 后对直接模块再次验证,结果在关联宿主 PR 同步。