dsh-safe-web-fetch
Run the following command in DeepSeek Harness:
dsh plugin install MostlyHarmlessxyz/dsh-safe-web-fetch
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install MostlyHarmlessxyz/dsh-safe-web-fetch in DeepSeek Harness to install the package and register the safe-http provider; see the full source at https://github.com/MostlyHarmlessxyz/dsh-safe-web-fetch
About this plugin
DeepSeek Harness ships with a web_fetch tool, but calling it directly in production means trusting raw DNS answers, accepting arbitrary redirect targets, and receiving unbounded response bodies with no guardrails. dsh-safe-web-fetch plugs into DSH's existing ctx.web service and inserts a verification layer before any socket is opened, so the normal tool and profile system keeps working without introducing a second search API.
For every request the provider resolves and inspects the hostname's DNS records—covering IPv4, IPv4-mapped IPv6, and special-purpose ranges—then pins the connection to the verified address through an isolated Undici dispatcher. Redirects are re-validated and must stay on the same origin; cross-origin hops are rejected outright. Response size in bytes and decoded characters, redirect count, concurrency, and total timeout are all capped with sensible defaults that can be tuned through DSH configuration. Only text-like media types (text, HTML, JSON, XML) are returned, and the plugin never adds cookies, authorization headers, browser state, or request bodies.
It is built for developers and architects deploying DSH in production fetch pipelines who want an application-level safety check layered on top of network controls. The plugin is explicitly not an egress firewall, content scanner, or zero-trust gateway; those responsibilities belong at the infrastructure layer. Think of it as a pre-connection gatekeeper that makes the default web_fetch behaviour predictable and bounded.
Use Cases
- Guarding production web-fetch pipelines against DNS spoofing and cross-origin redirects
- Capping response size, concurrency, and timeout in multi-tenant SaaS proxy layers
- Adding an application-level egress control to meet compliance and zero-trust requirements
Best For
- Backend developers building production web tools on DeepSeek Harness
- DevOps engineers responsible for platform network policy and egress controls
- Security-focused architects concerned with application-layer hardening
Related Plugins
Free web search plugin for DeepSeek Harness with web search, X search, and page fetch; no signup or API key required, with automatic multi-engine failover.
AnySearch-powered web and vertical search plugin for DeepSeek Harness, offering real-time search, cleaned URL content, concurrent batch search via native web_search/web_fetch, no API key required.
Pixel-perfect webpage clone tool that uses an agent harness to turn any webpage into a scored, full-page React replica.
A bilingual cost-tracking plugin for DeepSeek Harness with session/daily cost, budget, official & custom provider balance, coding plan quotas, peak/off-peak pricing alerts, and history stats.