MostlyHarmlessxyz/dsh-safe-web-fetch ↗★ 0
dsh-safe-web-fetch
SSRF-resistant HTTP(S) fetch provider for DeepSeek Harness
AI 분석
核心用途是为 DSH 的网页获取工具提供安全的、防范 SSRF 攻击的 HTTP 请求代理,支持配置域名黑白名单。适合对网络安全和隐私有严格要求的企业或个人部署环境。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MostlyHarmlessxyz/dsh-safe-web-fetchConfiguration
The defaults are deliberately modest:
| Option | Default | Maximum |
|---|---|---|
maxUrlLength | 2048 | 16384 |
maxResponseBytes | 5000000 | 100000000 |
maxBodyChars | 100000 | 10000000 |
timeoutMs | 30000 | Node timer limit |
maxRedirects | 5 | 20 |
maxConcurrentRequests | 16 | 128 |
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.