Product Diaryby Remnant Security

DeepSeek Harness Gets Safer Remote Access

Ian Trimble6 min readAI and Local Models

I rebuilt my remote DeepSeek workspace so temporary sign-in links stay out of logs, then verified pairing on two Macs and mirrored the config.

0Raw bearer URLs in log
2Macs verified
3Repository copies checked
6Stale patch warnings

I can now open DeepSeek Harness from either Mac, see my workspaces, pick a model, and launch a coding session without leaking temporary sign-in links into plain log files. Strangers still get turned away at the gate, the service comes back up cleanly on reboot, and the whole setup sits mirrored if my primary host dies.

The warning screen was doing its job

This started with an error screen that looked like an outage. I opened my public DeepSeek Harness address and hit an authentication warning telling me to reopen the launch link printed by the server. Because I'd already repaired the reverse proxy once, my first instinct was that the tunnel had broken again.

It hadn't.

The official DeepSeek Harness deployment guide spells out why: the startup link carries a temporary process credential that exchanges on first visit for a session cookie, and a second gate pairs that browser as an approved device. Any plain visit without both grants is supposed to fail. Once I treated the 401 response as proof the fence held—and reopened the real launch URL before pairing the browser—the workspace list and model controls loaded right away.

The real leak was sitting in the log

The gate was healthy. The logging wasn't.

My launch service had been writing the full startup address straight into standard output, temporary credential and all. It wasn't exposed on the public web page, yet anyone reading the service log on disk could still lift an active sign-in link long after it was issued. Pairing links took the exact same path.

I slipped a small wrapper between the service manager and DeepSeek Harness. It intercepts both output streams, catches launch and pairing URLs before they hit disk, saves the live launch URL into a user-only runtime file that deletes itself on exit, and rewrites the credential segment to [REDACTED] in logs.

A simulated terminal fixture showing launch and pairing addresses redacted

A simulated credential fixture captured on 30 November 2026; the values are synthetic, while the redaction and file-mode checks run through the real wrapper.

Notice those tokens are deliberately synthetic: the check pumps one fake launch URL and one fake pairing URL through the production wrapper and verifies the runtime file's owner-only permissions so no real secret had to appear in an image. Next, I rotated the live credential and tested the actual endpoint cleanly.

A terminal report showing the DeepSeek Harness live validation results

The live deployment check on 30 November 2026, with the public gate returning 401 and no raw bearer addresses left in the log.

Unauthenticated visits stayed locked at 401, and log scans turned up zero raw bearer addresses. Six stale profile warnings still complain about optional tools that aren't installed on this host; I left them visible in the report because they're real cleanup debt, even if they don't block the web interface.

Turning a one-off fix into a deployment kit

Before this pass, the working setup was scattered across a launch service, a proxy file, profile overrides, and scattered notes in my head—which works right up until a SSD dies or you have to debug it a month later.

I consolidated the reproducible bits into a private repository: launch template, Caddy reverse-proxy rules, managed profile config, the redacting wrapper, and a live check script. My first local commit accidentally swept in a browser capture, runtime database state, and local agent prefs, so I caught it before pushing, rewrote the unpublished root commit, and audited every path. What reached the private remote was one clean commit holding seven inspected files, with zero tokens or databases inside.

Making the Mac mini prove it

Command-line curl checks confirmed the public endpoint handed out session cookies, which wasn't enough on its own. Chrome on the Mac mini held the right cookie and still drew a completely blank screen.

Safari got past that hurdle and paused right at the device-pairing fence as designed. I generated a fresh one-time pairing URL locally, passed it over without printing it, and refreshed Safari after the final credential rotation.

DeepSeek Harness open in Safari with the sidebar collapsed and the session composer visible

DeepSeek Harness in Safari on the Mac mini on 30 November 2026, showing the authenticated composer, access control and model selector after pairing.

Seeing the clean domain in the address bar alongside the active composer, Full access toggle, and model dropdown—with private workspace titles collapsed out of frame—was the acceptance proof I needed. Both controls below were live in the same authenticated session too, showing DeepSeek V4.1 Flash with High reasoning and Vision enabled, plus all three workspace permission tiers.

The DeepSeek Harness model menu showing the selected model and reasoning effort

The real model menu in Safari on 30 November 2026, showing DeepSeek V4.1 Flash with High reasoning and Vision enabled.

The DeepSeek Harness access menu showing three permission levels

The real access menu in Safari on 30 November 2026, showing Read Only, Workspace Write and Full access without exposing workspace contents.

Worth noting where tooling hiccuped along the way: my regular remote-control relay kept timing out during Safari verification, so I drove the screenshot pass directly over an authorized local shell. I also stopped short of burning a paid model turn from the Mini here; a previous browser run already verified end-to-end streaming replies, while this pass focused on auth, pairing, and UI integrity.

A local mirror isn't off-site recovery

All configuration now sits in three identical copies: working checkout, private Git remote, and a bare NAS mirror synced with git clone --mirror per Git's mirror docs so every ref stays in lockstep instead of drifting like a normal clone.

A terminal report showing the working copy, private remote and NAS mirror at the same revision

The repository verification on 30 November 2026, with all three copies current and the network mirror passing its object check.

All three match revisions and pass git fsck. Still, I won't oversell it: that NAS share uses permissive permissions without volume encryption, and it sits in the same house as the Mac mini—useful protection against a flaky SSD, not off-site disaster recovery.

Fixing the dual-boot SSH alias along the way

While cleaning up remote routes, I noticed my Neo box (which dual-boots macOS and Omarchy Linux) kept aiming its short hostname at the sleeping macOS side while Linux was actually awake. Comparing SSH host fingerprints against the trusted route first so I never skipped host-key checks, I split explicit OS aliases and pointed the default short name at the active Omarchy host, extending the pattern from my earlier headless Omarchy setup.

Where this leaves the harness

Treating a 401 screen as an outage cost me time before checking what the authentication spec actually promised. Now the public gate stays locked, temporary launch links disappear from logs as soon as they're printed, Safari pairs cleanly on the Mac mini, and all config sits reproducible in Git—with encrypted off-site backups and pruning those six stale profile warnings left as the only real cleanup items.

Sources

Keep reading