rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:SiyuQian/dsh-secrets
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 简体中文
A DeepSeek Harness plugin that lets the agent ask you for API keys, passwords, and tokens through a secure form, without the values ever reaching the model.
request_secret with the variable names, a purpose, and a dotenv file./api/dsh-secrets.* route straight to the Host. They are never a tool argument, a tool result, or a session event.0600. Existing lines, comments, and line endings are kept.{ status, path, names, added, updated, unchanged, kept }.The bundled secrets skill teaches the agent when and how to call the tool.
Documentation is available in English and Simplified Chinese, with English as the default entry point. The interface and approval prompts support both languages and follow the Harness locale setting, with English as the fallback.
| Layer | Mechanism | What it does |
|---|---|---|
| L1 read guard | ctx.tools.guard() |
Denies read/edit/write/grep, and shell commands that read a managed file (cat, cp, source, python -c open(...), …). Other plugins cannot override the denial. |
| L2 redaction | tools/post-execute |
Replaces managed values in every tool result with [REDACTED:NAME], including base64 (all alignments, e.g. inside Basic auth), URL encoding, JSON escaping, and hex. If redaction fails, the output is withheld. |
| L3 approval | tools/pre-execute → ask |
A shell command that uses a managed variable together with curl, echo, printenv, ssh, … asks you first. |
| No values in logs | Separate fetch route | The session log records only names, path, and counts. registry.json stores names, paths, and an 8-char fingerprint. |
Other rules:
env_file must be inside the working directory.run_code (PTC) programs cannot open the form.Settings → Secrets lists each managed variable in a responsive card, with its full file path, fingerprint, update time, and actions. Long names and paths wrap within the panel instead of requiring horizontal scrolling. You can stop managing a variable, or delete it from its file. The page does not show values.
Requires DeepSeek Harness 0.2.x and Node 22 or later.
From inside a Harness session, ask the agent to install the bundle:
plugin_manager install_bundle target: https://github.com/SiyuQian/dsh-secrets.git
Or clone the repo and install from the local directory:
git clone https://github.com/SiyuQian/dsh-secrets.git
# then in Harness: plugin_manager install_bundle target: /absolute/path/to/dsh-secrets
Refresh the Web GUI after installing.
Optional. Set these in your profile cordis.patch.yml:
- id: dsh-secrets
name: dsh-secrets
config:
timeoutMs: 600000 # form timeout, default 10 min
dataDir: /abs/path # registry location, default $DSH_HOME/plugins/dsh-secrets
allowOutsideCwd: false # allow env_file outside the working directory
npm ci --ignore-scripts
npm test # node:test; Client tests use React and react-test-renderer
| File | Contents |
|---|---|
lib/index.js |
Host: tool, routes, guard, hooks, skill provider |
lib/dotenv.js |
Dotenv reconcile, parse, and remove |
lib/redactor.js |
Value-variant redaction |
lib/policy.js |
L1 and L3 rules |
lib/store.js |
Atomic 0600 writes with sha256 conflict retry, and the registry |
client/client.js |
Credential input dock, tool status, and settings cards (plain JS, no build step) |
| API findings / API 调研结论 | The Harness APIs this plugin relies on, with sources |
Keep both documentation editions in sync when changing behavior, commands, or security limits. Code identifiers, protocol fields, and shared command examples remain in English. The bundled agent skill uses one English source so agents receive the same safety instructions in either UI language.
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: llm-security、deepseek-harness。