dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:spark-ai-boy/dsh-tls-trust-anchor
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Adds a Certificate trust section to DeepSeek Harness Settings where a host can be marked to skip TLS certificate verification — so a private model gateway behind a self-signed certificate connects instead of failing with Connection error.
Node.js verifies TLS with its own CA store. It never reads the macOS or Windows system trust store, so a certificate that Safari, Chrome, or a Bun-based CLI accepts can still be rejected inside the Harness runtime:
UNABLE_TO_VERIFY_LEAF_SIGNATURE | unable to verify the first certificate
A self-signed leaf certificate (Basic Constraints: CA:FALSE) cannot act as a trust anchor at all unless OpenSSL is told to accept a partial chain, and Node does not expose that switch through a provider configuration. There is no provider-level certificate or trust option to set.
newapi.example.com, decide whether to skip verification for it, remove it again. The decision applies to that host only.--require preload to NODE_OPTIONS, so Node children the Harness spawns (a model gateway proxy that runs on its own, for example) follow the same per-host policy.~/.dsh/tls-trust/trusted-hosts.json and survives restarts.tls.connect for the Harness runtime; the switch takes effect on the next request, without a restart.The Harness plugin manager installs from a GitHub repository or an npm package:
https://github.com/spark-ai-boy/dsh-tls-trust-anchordsh-tls-trust-anchorbaseURL, API type, and key. The baseURL is the API root, so enter https://newapi.example.com — not https://newapi.example.com/v1, because the client appends /v1/messages itself.Skipping verification keeps the connection encrypted but stops proving who the peer is. Use it only for a certificate you control, and prefer a properly issued certificate whenever one is available. The trust list is narrow by design: a version check, an expired certificate, or an unknown root on any other host is still refused.
Removing a host from the list immediately restores standard verification for it on the next request.
| Half | Behaviour |
|---|---|
Host (index.js) |
Reads the persisted list, patches tls.connect inside the Harness runtime, and serves the tlsTrust Remote service |
Client (client.js) |
Registers a settings.section row and renders the list, switch, and delete button |
State (src/host/state.js) |
Hostname normalisation and JSON persistence |
Preload (src/host/preload.cjs) |
Enters child processes through NODE_OPTIONS=--require, reads the same list, and patches per host |
Only connections whose servername/host matches a trusted entry get rejectUnauthorized: false. Everything else is passed through untouched.
@deepseek-ai/dsh-typert-protocol, which the Harness installation provides. It is not bundled.client.js descriptors must match the Host method signatures verbatim.node --test "tests/*.test.js" # unit tests
npm run check # syntax + tests
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。