<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Privacy on Trevor's Blog</title><link>https://hitrevor.com/en/tags/privacy/</link><description>Recent content in Privacy on Trevor's Blog</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Tue, 01 Dec 2026 08:52:32 +0800</lastBuildDate><atom:link href="https://hitrevor.com/en/tags/privacy/index.xml" rel="self" type="application/rss+xml"/><item><title>Does dsh upload in secret? I took its three switches apart</title><link>https://hitrevor.com/en/posts/dsh-telemetry/</link><pubDate>Tue, 01 Dec 2026 08:52:32 +0800</pubDate><guid>https://hitrevor.com/en/posts/dsh-telemetry/</guid><description>A clean profile ran 24 seconds with zero outbound connections. One click on feedback, though, sends the whole session prefix, up to 4 MB. Three upload switches, taken apart one by one.</description><content:encoded><![CDATA[<p>On 2026-11-30 a claim made the rounds on Hacker News: DeepSeek Harness uploads data by default, leaked a private key, and roughly a million dollars in crypto was stolen. I can&rsquo;t defend it on its behalf, and I&rsquo;m not going to join the shouting. All I can do is take its own configuration apart.</p>
<p>Three conclusions came out:</p>
<ul>
<li><strong>It does not upload by default.</strong> I started a web profile against an empty <code>DSH_HOME</code> and sampled <code>lsof</code> six times over 24 seconds: only a local listener, zero outbound connections</li>
<li><strong>One click on feedback sends the whole session.</strong> What goes out is the session log up to that feedback; the official README&rsquo;s own words are &ldquo;includes context&rdquo;, capped at 4 MB per request</li>
<li><strong>Desktop has two more switches</strong>, enabled by default with no UI toggle; on web and headless they are <code>disabled</code></li>
</ul>
<h2 id="there-are-only-three-and-they-are-not-distributed-evenly">There are only three, and they are not distributed evenly</h2>
<p><code>--dump-config</code> prints three rows, and where they live differs a lot.</p>
<p><img alt="Three switches: one sends sessions, two send behaviour" loading="lazy" src="/images/dsh-telemetry/fig1.png"></p>
<p>The first, <code>session-telemetry-otel</code>, is mounted on all three: web, headless and desktop. So it has nothing to do with the interface. The second and third, <code>desktop-product-telemetry</code> and <code>product-analytics</code>, carry a hard-coded condition:</p>
<blockquote>
<p>disabled: ctx.get(&lsquo;profileContext&rsquo;)?.name !== &lsquo;desktop&rsquo;</p>
</blockquote>
<p>Meaning only the desktop profile turns them on. Run the web build in a browser and both rows are dead.</p>
<h2 id="the-one-that-sends-sessions-defaults-to-feedback_only">The one that sends sessions defaults to FEEDBACK_ONLY</h2>
<p>It has exactly two modes, <code>FEEDBACK_ONLY</code> and <code>DISABLED</code>. The official README is blunt about it: <code>FULL</code> is rejected, it is not an alias.</p>
<p>Under <code>FEEDBACK_ONLY</code>, history only leaves the machine when you submit explicit feedback inside a given session.</p>
<p><img alt="One feedback releases the whole session up to that moment" loading="lazy" src="/images/dsh-telemetry/fig2.png"></p>
<p>The predicate in code is called <code>isFeedback</code>, and it accepts three event types: <code>feedback/record</code>, <code>feedback/message-put</code>, <code>feedback/message-delete</code>, each requiring that the event&rsquo;s sessionId equals the current session.</p>
<p>One easy misreading: <strong>seeds inherited from a fork do not count.</strong> <code>event.seq &lt; session.inheritedEventCount</code> returns false outright, so history you carried over from another session does not ride along because you gave a thumbs-up in the new one.</p>
<p>Later records do not keep flowing either. The next upload waits for the next explicit feedback. The README&rsquo;s sentence is that it releases &ldquo;the authoritative log prefix up to that feedback, including context&rdquo;.</p>
<h2 id="what-identity-travels-with-it">What identity travels with it</h2>
<p>Not your account. A random UUID. The comments in <code>dsh-anonymous-user-id</code> are restrained about it: a bare UUID stored at <code>$DSH_HOME/.anonymous-user-id</code>, never derived from the hostname, a network address, a git remote, or any other identifying source.</p>
<p>It is scoped to the harness home, not the machine. Every process sharing one <code>$DSH_HOME</code> reports the same id, and deleting that file mints a fresh identity on the next launch.</p>
<p>This machine has one; the first eight characters are <code>18a3cec4</code>. Transport is gzip-compressed OTLP, batched every 10 seconds, flushed immediately on <code>turn/end</code>, with a 4,000,000-byte ceiling per request.</p>
<h2 id="the-two-on-desktop-know-where-you-click-not-what-you-write">The two on desktop know where you click, not what you write</h2>
<p>Product analytics reports behaviour, not content.</p>
<p><img alt="The field list for desktop product analytics" loading="lazy" src="/images/dsh-telemetry/fig4.png"></p>
<p>The field table comes from <code>ProductEventMap</code> in <code>events.ts</code>: about twenty events covering launch, auth page clicks, the send button (with session_id, model_name, run_mode), model switches, context compression, plugin toggles, whatever you typed into the plugin install box, and install results with error reasons.</p>
<p>On the environment side I only found CPU model, logical and physical core counts, total memory, OS version and architecture. The comments in <code>environment.ts</code> state that a failed field carries a fixed reason only, never the raw command, its output, or the error text.</p>
<p>Its default is <code>enabled: true</code>, and a comment says &ldquo;no user settings surface&rdquo;, so there is no toggle in the UI. Turning it off means editing config or an environment variable.</p>
<h2 id="test-a-clean-profile-24-seconds-zero-outbound-connections">Test: a clean profile, 24 seconds, zero outbound connections</h2>
<p>Saying &ldquo;it doesn&rsquo;t upload by default&rdquo; cannot rest on reading code alone, so I started a clean one.</p>
<p><img alt="24 seconds: one listener, no outbound connection" loading="lazy" src="/images/dsh-telemetry/fig3.png"></p>
<p><code>DSH_HOME</code> pointed at a freshly created empty directory, no credentials, no history. I sampled <code>lsof</code> every 4 seconds, six times: nothing but <code>127.0.0.1:8943 (LISTEN)</code> from start to finish.</p>
<p>The boundary of that result matters. It proves the not-signed-in, no-events, no-feedback case is clean. It does not prove every request after you sign in. And once you sign in, a model call must carry your context to the API by design; that is the premise of the product, not a back door.</p>
<h2 id="so-does-the-private-key-claim-hold-up">So does the private key claim hold up</h2>
<p>I went through the config and the source, and I could not find a path where local files leave the machine by default. Of the three switches, two exist only on desktop and send behavioural events; the only one that sends sessions requires you to click feedback.</p>
<p>The reverse is true, though: that path exists, it just needs two actions at once. <strong>You let the agent read a file containing a key, then you clicked feedback.</strong> At that moment the whole session prefix goes up, file contents included. The README leaves redaction to the deployer; the client does not scrub content.</p>
<p>There is a separate risk, unrelated to upload: if you let a model read a private key inside a session, that text has already been in an API request. That holds for every agent client, not just dsh.</p>
<h2 id="to-check-it-yourself-three-lines-are-enough">To check it yourself, three lines are enough</h2>
<p>No packet capture needed. Start with config:</p>
<blockquote>
<p>dsh &ndash;profile web &ndash;dump-config | grep -iE &ldquo;telemetry|analytics&rdquo;</p>
</blockquote>
<p>Three rows come back verbatim: what is mounted, what the defaults are, which domain the endpoint is. To see real connections, point <code>DSH_HOME</code> at an empty directory, start the service, then sample <code>lsof -nP -i -a -p &lt;pid&gt;</code> every few seconds. Zero or not zero beats any claim.</p>
<p>To test the &ldquo;only on feedback&rdquo; part, point it at your own machine: <code>DSH_TELEMETRY_OTLP_URL=http://127.0.0.1:9009/v1/logs</code>, run a small server that logs requests, then click feedback once in the UI and see whether a POST arrives. The endpoint is a config value, so no code changes are involved.</p>
<h2 id="turn-it-off-or-not">Turn it off or not</h2>
<p>If you care, <code>DSH_TELEMETRY_MODE=DISABLED</code> is enough. It constructs no transport; feedback is still recorded, just locally, and a log line says &ldquo;this feedback is not uploaded through OpenTelemetry&rdquo;.</p>
<p>The two desktop ones have no environment variable. You either set <code>enabled</code> to false in config or remove the plugin row. Restart afterwards, since it is read when the profile loads.</p>
<p>When you should not turn it off: when you are filing a bug with feedback. Releasing the session is the point; disabling upload makes the feedback useless.</p>
<h2 id="what-bothers-me-is-something-else">What bothers me is something else</h2>
<p>The default itself is fine, and <code>FEEDBACK_ONLY</code> is an honest name. What bothers me is that &ldquo;4 MB, including context&rdquo; appears in no interface copy. Click the thumbs-down under a message and the UI says &ldquo;recorded&rdquo;. It does not tell you that this click ships the entire conversation, together with the files you had it read.</p>
<p>The anonymous UUID design is clean; not tying it to an identity is better than most comparable products manage. But anonymous describes the identity, not the content.</p>
<p>Do you let the agent read <code>.env</code> or wallet files inside a session? If you have, then that one feedback click amounts to a manual upload. I&rsquo;ll be thinking about it before my next click. Will you?</p>
]]></content:encoded></item></channel></rss>