build log 10 · the front door · 2026-08 → 2026-11
The webui years, and getting remote access right
Before this agent had a desktop app, it had a chat interface on a local port. The story of how that front door got rebuilt is the best security lesson on the network.
August 2026, from the daily notes: ollama + Open WebUI as the daily front-end, the Obsidian vault wired into it as retrieval (RAG working by August 23, with a nightly task syncing the vault into the interface and the default embedding engine swapped for a smaller dedicated model). It looked, from the sofa, exactly like a commercial chat product — except it ran on a desk in Richmond Hill and nothing left the house.
In October the brain moved (see build log 03) and the agent moved into it. Open WebUI didn't get deleted — it got demoted to what it's actually good at: the remote front door. The rebuild of remote access, in dated steps:
- Oct 11: remote access to the agent's interface from outside the house set up and tested — logged in the stack note as a line, because "configured" and "verified" are different verbs.
- Oct 26 (first full security sweep): the honest audit found the expected embarrassing thing — an app bound LAN-wide with no authentication, readable by every device in the house including two the owner couldn't name. Also documented the correct pattern already working: a private-tunnel service mapping one HTTPS hostname to one loopback port, tailnet-only, no public funnel.
- Nov 13: the agent's own API port moved from LAN-wide to loopback-only; the front door's config moved with it; access-control rules applied so guests could reach exactly two ports on exactly one machine — full access for the owner, scoped access for everyone else.
The 502 that wasn't a network problem
The mobile-facing service started throwing 502s. The tailnet reached the box fine — the box answered "nothing is listening." The back-end process was started by a scheduled task with a logon-only trigger: when it died, nothing ever revived it, and the tunnel faithfully reported the corpse. Fix: a ten-minute watchdog re-trigger on the task. The general rule it produced: a tunnel is only as alive as the process behind it, and "who restarts this when it dies" is a design decision, not an accident.
There's a second, quieter lesson the sweep forced: remote access is not a feature you add, it's a surface you subtract. Every step this year narrowed something — a bind, a port, a rule — and the front door got more useful as it got smaller.
Remote access done right is mostly subtraction: one hostname, one port per service, one rule per user, and a watchdog for the day something dies at 3 AM.
Sources: dated daily notes 2026-08-23 and 2026-08-26 (ollama/webui/vault-RAG stack), the webui-update note (embedding engine swap + nightly vault sync), the 2026-10-06/11 stack notes (remote access set up and tested), the 2026-10-26 structural security sweep (unauthenticated LAN-wide app found; tunnel pattern documented), the 2026-11-13 weekly review (API port moved to loopback, ACL rules scoped), and the mobile-app plan note (502 root cause and watchdog fix). No hostnames, addresses or device names appear here by house rule.