Skip to content

[Cleanup] glob_builder 返回 Err 包含完整 pattern 可能泄露路径信息 #342

@TrueNine

Description

@TrueNine

🐛 问题描述

sdk/src/policy/cleanup.rs:257-264glob_builder 错误信息包含完整 pattern,可能在日志中泄露敏感路径。

📁 证据

cleanup.rs 第 257-264 行。

✅ 修复建议

错误信息只包含 pattern 前缀或哈希,不暴露完整路径。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglowLow priorityrustRust SDK/CLI/MCP code

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions