030611/dsh-telemetry-redactor
DeepSeek Harness 会话遥测的故障关闭导出副本编辑
项目介绍Project Overview
DSH Telemetry Redactor 是 DeepSeek Harness 的 Profile Bundle 插件,挂载在 session-telemetry/record 瀑布流上,递归清洗出站遥测副本中的凭据字段与字符串模式后调用 next(),让其他部署规则继续生效。适用于需要把会话遥测发往后端、又不想改写规范日志的场景。已知限制:未知凭据格式若既无敏感键名也不匹配字符串模式可能放行。
DSH Telemetry Redactor is a DeepSeek Harness profile bundle that mounts on the official session-telemetry/record waterfall. It recursively scrubs supported credential keys and string patterns from the deep-copied outbound telemetry record, then calls next() so other deployment rules still compose. Use it when session telemetry is exported to a backend but the canonical session log must stay untouched. Caveat: unknown secret formats that match neither a sensitive key nor a recognized string pattern may pass through.
请帮我了解并安装插件:【dsh-telemetry-redactor】【https://github.com/030611/dsh-telemetry-redactor】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add dsh-telemetry-redactor
把 030611/dsh-telemetry-redactor 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
DSH Telemetry Redactor
English | 中文

Redact supported credential patterns from outbound telemetry copies before configured backends receive them—without rewriting canonical session logs.
dsh plugin --profile web add dsh-telemetry-redactor
Community-maintained and not an official DeepSeek project. Related trust-layer plugins: Verification Receipt, Evidence Audit, and 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, fail-closed means only that this coordinator withholds one failing export copy and continues the agent loop. It is not a claim that every telemetry path or listener order is impossible to bypass.
What it redacts
- Values under high-risk key names such as
authorization,cookie,credential,password,secret,token,apiKey,access_token,clientSecret, andprivateKey; recognized credential patterns in key names are replaced too. - Bearer and Basic authorization values embedded in strings.
- Common credential forms including
sk-..., GitHub tokens, Slack tokens, JWT-like triples, andtoken=.../api_key: ...assignments.
Keys are tokenized before matching, so telemetry counters such as inputTokens, output_tokens, tokenUsage, tokenCount, and contextTokenCount, and ordinary fields such as tokenizer, remain intact. Redaction is a safety filter, not a proof that an arbitrary unknown secret format is absent. The exact supported and unsupported cases are in SECRET-MATRIX.md; see SECURITY.md for the trust boundary.
The listener is prepended so it normally wraps deployment rules mounted before or after it and redacts their final output. A deliberately prepended outer listener can still add content after this plugin; review the complete waterfall listener set in security-sensitive deployments.
Install
Install the public package into the selected DSH profile, then inspect the resolved configuration:
dsh plugin --profile web add dsh-telemetry-redactor
dsh --profile web --dump-config
The dump must contain the inserted telemetry-redactor row. The bundle does not add, replace, or enable a telemetry backend; it only protects records handled by whatever backend the deployment already selected.
Configuration
The only option is replacement, which defaults to [REDACTED]. It must contain 1 to 128 characters and must not itself match a supported credential pattern; invalid values fail loudly when the Cordis plugin fiber is awaited.
- id: telemetry-redactor
config:
replacement: '[TELEMETRY-REDACTED]'
The key and pattern rules are fixed security behavior and cannot be disabled through configuration.
Verification
pnpm run typecheck
pnpm test
pnpm run build
pnpm run test:smoke
pnpm run test:performance
pnpm run test:official-head
pnpm run test:official-patch
pnpm run test:packed:clean-env
The tests include a real Cordis Loader composition with the SessionTelemetryCoordinator: the backend receives the replacement while the authoritative session event retains the fixture secret, and an over-deep record is withheld without escaping the capture handler. Release smokes use the packaged frozen fixture for official commit 47f943859bef60e4160492346772ded9b24f765a: it pins the reviewed source hashes, exact published runtime versions and runtime-file hashes, then verifies the required Cordis/session/LLM/coordinator API surface before composing it with the built or tarball-installed plugin. test:official-patch similarly pins the reviewed Include source hash before applying cordis.patch.yml. No environment variable or installed official checkout is required.
Model Experience
None. The plugin observes an outbound telemetry copy after session logging and contributes no prompt text, tool schema, message, or provider request.
KV Cache effect
None; no model request changes.
Known limitations
- Unknown secret formats that have neither a sensitive key nor a recognized string pattern may pass through. Add deterministic coverage before extending the fixed patterns.
- Accessor properties and non-plain objects are rejected rather than read or silently converted. Enumerable JSON data in arrays, ordinary objects, and null-prototype objects is supported; non-enumerable fields are outside the telemetry contract.
- A key-name match redacts the complete value. This favors safety over retaining structure beneath fields named as credentials.
- Redaction occurs synchronously on the telemetry capture path. The implementation is recursive and bounded to 64 nested containers; very large but shallow records still cost linear CPU time.
- A Proxy can run or throw from reflection traps before the plugin can inspect its contents. The official coordinator's own
structuredClonenormally rejects a Proxy before this waterfall; direct third-party dispatch is not a supported hostile-object sandbox. dsh.plugin.jsonis supplemental community metadata. DSH installation is controlled bypackage.json'sdsh.bundlefield andcordis.patch.yml.
License
MIT
nexu-io/open-design
ruvnet/ruflo
amruthpillai/reactive-resume
volcengine/OpenViking
Molunerfinn/PicGo
titanwings/colleague-skill
nocobase/nocobase
Tencent/WeKnora