mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-07-22 01:15:14 +08:00
两处代理凭据泄漏: - redact_proxy_url 对无 scheme 的代理串(user:secret@host:port,curl 默认按 http 处理)完全不脱敏,明文凭据会进入 progress 事件、daemon 日志和 bat-events.jsonl。现对无 scheme 但含 userinfo 的情况一并脱敏。 - daemon 保存的 command 含原始代理 URL,经 RPC status 和 bat status --json 回显到 stdout(会被监控采集)。新增 redact_command_proxy_credentials,在 build_daemon_status_report 的对外拷贝里脱敏 --proxy 值;磁盘状态文件 (0600)仍保留原始 command 供 restart/reload 复用。 残留:子进程 argv 仍可经 /proc/<pid>/cmdline 读到代理凭据,以及 0600 状态 文件内的 at-rest 凭据,二者受进程属主与文件权限约束,后续可改由环境变量下 传子进程进一步收敛。 对应 issue #18 维护清单 1-2。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>