跳到正文

030611/dsh-telemetry-redactor

30最近提交 2026年8月14日

dsh-telemetry-redactor DSH 插件

DSH Telemetry Redactor 是一个极简的 DeepSeek Harness 配置文件包,在会话遥测被后端接收之前脱敏其中的敏感值。它挂载在官方的 session-telemetry/record 瀑布上,调用 next() 以保持其他部署规则可组合,并返回一个新的递归脱敏记录。官方的遥测协调器在此瀑布之前深度复制规范的会话事件,因此该插件仅更改出站副本,从不重写规范的会话日志。

如何安装 dsh-telemetry-redactor DSH 插件

dsh plugin --profile web add dsh-telemetry-redactor

复制不会执行命令。安装 dsh-telemetry-redactor DSH 插件前请核对仓库和版本。

dsh-telemetry-redactor DSH 插件数据来源

dsh-telemetry-redactor DSH 插件快照日期:2026年8月16日

discovered

dsh-telemetry-redactor DSH 插件能做什么

  • 脱敏高风险键名下的值,如 authorization、cookie、credential、password、secret、token、apiKey、access_token、clientSecret 和 privateKey。
  • 识别并脱敏嵌入字符串中的 Bearer 和 Basic 授权值。
  • 脱敏常见的凭证形式,包括 sk-...、GitHub 令牌、Slack 令牌、JWT 类似的三元组以及 token=... / api_key: ... 赋值。
  • 键在匹配前进行分词,因此遥测计数器如 inputTokens、output_tokens、tokenUsage 以及普通字段如 tokenizer 不受影响。
  • 可配置的替换字符串(默认为 [REDACTED]),支持 1-128 个字符验证。

dsh-telemetry-redactor DSH 插件适合哪些场景

  • 在将遥测转发给第三方监控服务时防止凭证泄露。
  • 遵守要求敏感数据在离开主机前进行掩码的安全策略。
  • 为会话遥测中的秘密添加额外保护层,而不修改原始日志。
  • 集成到 CI/CD 流水线中,验证遥测脱敏是否按预期工作。

dsh-telemetry-redactor DSH 插件适合谁

  • 部署遥测后端并需要避免暴露凭证的 DSH 用户。
  • 负责确保出站遥测不包含敏感信息的安全团队。

dsh-telemetry-redactor DSH 插件的限制

  • 既没有敏感键也没有识别模式的未知秘密格式可能通过。
  • 访问器属性和非普通对象会被拒绝,而不是读取或静默转换。
  • 键名匹配会脱敏整个值,以安全性优先于保留凭证字段下结构。
  • 脱敏同步进行,并限制在 64 层嵌套容器内;非常大的浅层记录仍会消耗线性 CPU 时间。
  • Proxy 对象可以在插件检查其内容之前运行或抛出反射陷阱。

dsh-telemetry-redactor DSH 插件的仓库 README 摘录

以下文字摘自 dsh-telemetry-redactor DSH 插件的上游仓库 030611/dsh-telemetry-redactor 的 README,版权归原作者,仅作引用。

English | [中文](README.zh.md) ![DSH Telemetry Redactor social preview](docs/social-preview.jpg) **Redact supported credential patterns from outbound telemetry copies before configured backends receive them—without rewriting canonical session logs.** ```sh dsh plugin --profile web add dsh-telemetry-redactor ``` > Community-maintained and not an official DeepSeek project. Related trust-layer plugins: [Verification Receipt](https://github.com/030611/dsh-verification-receipt), [Evidence Audit](https://github.com/030611/qiushi-dsh-evidence-audit), and [Context Provenance](https://github.com/030611/dsh-context-provenance). `dsh-telemetry-redactor` is a minimal DeepSeek Harness Profile Bundle that redacts sensitive values from session telemetry before a backend receives them. It mounts on the official `session-telemetry/record` waterfall, calls `next()` so other deployment rules still compose, and returns a new recursively redacted record. The official telemetry coordinator deep-copies canonical session events before this waterfall and contains thrown rules per record. Therefore this plugin changes only the outbound copy: it never rewrites the canonical session log. In this document,

阅读完整 README仓库许可: MIT

dsh-telemetry-redactor DSH 插件常见问题

这个插件会修改原始会话日志吗?

不会。官方的遥测协调器会在瀑布之前深度复制规范的会话事件,因此该插件仅脱敏出站副本。规范的会话日志保持不变。

支持哪些凭证模式进行脱敏?

它脱敏高风险键名下的值,如 authorization、cookie、credential、password、secret、token、apiKey,还识别 Bearer 令牌、Basic 认证、sk-...、GitHub 令牌、Slack 令牌、JWT 类似三元组以及 token=... / api_key: ... 赋值等模式。具体列表请参见 SECRET-MATRIX.md。

能否自定义替换字符串?

可以。唯一的配置选项是 `replacement`,默认值为 `[REDACTED]`。它必须为 1-128 个字符,且不能匹配支持的凭证模式。无效值会在插件等待时导致显式失败。

这个插件会影响 token 使用量等遥测计数器吗?

不会。键在匹配前会进行分词,因此像 inputTokens、output_tokens、tokenUsage 这样的计数器以及 tokenizer 等普通字段不受影响。只有高风险键和识别的凭证模式会被脱敏。

这个插件有哪些已知限制?

未由键名或模式覆盖的未知秘密格式可能通过。访问器属性和非普通对象会被拒绝。键名匹配会脱敏整个值。脱敏是同步的,且限制在 64 层嵌套容器内;大型浅层记录仍会消耗线性 CPU 时间。Proxy 对象可以在检查之前运行陷阱。