MostlyHarmlessxyz/dsh-safe-web-fetch0

dsh-safe-web-fetch

SSRF-resistant HTTP(S) fetch provider for DeepSeek Harness

AI Analysis

核心用途是为 DSH 的网页获取工具提供安全的、防范 SSRF 攻击的 HTTP 请求代理,支持配置域名黑白名单。适合对网络安全和隐私有严格要求的企业或个人部署环境。

Package
dsh-safe-web-fetch
Version
0.1.0-next.0
License
MIT
Last updated
Aug 14, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MostlyHarmlessxyz/dsh-safe-web-fetch

Configuration

The defaults are deliberately modest:

OptionDefaultMaximum
maxUrlLength204816384
maxResponseBytes5000000100000000
maxBodyChars10000010000000
timeoutMs30000Node timer limit
maxRedirects520
maxConcurrentRequests16128

allowHosts, denyHosts, and userAgent are also configurable. DSH replaces a row's complete config when a patch targets it, so include every value you want to keep:

- id: safe-web-fetch
  name: dsh-safe-web-fetch
  config:
    maxUrlLength: 4096
    maxResponseBytes: 10000000
    maxBodyChars: 200000
    timeoutMs: 30000
    maxRedirects: 3
    maxConcurrentRequests: 8
    allowHosts:
      - '*.docs.example.com'
    denyHosts: []
    userAgent: my-company-fetch/1.0

If you mount the function plugin yourself instead of using the bundle, set fetchProvider: safe-http on the web row. When more than one provider is available, always select one by id; DSH will otherwise report WEB_PROVIDER_AMBIGUOUS rather than guessing.