The Rule

I have a simple rule for my lab. If a service holds something personal, it runs on hardware I control, under accounts I own, and I can see it working.

That rule has three parts. Each part shaped a different set of tools:

  • Own the data. My documents, location history, mail, notes and music live in my house or on cloud nodes I administer. They do not live in someone else’s product.
  • Own the keys. Identities, encryption keys and the right to add a device to my network belong to me.
  • Own the view. I want live, honest dashboards that show me what happens. Then I do not have to hope that privacy works.

This post shows the parts that make the rule real. It includes the two tools with Sheikah names that I am most proud of. It ends with where I want to take my dashboards next.

An Identity I Own

Every service in the lab signs in through one directory and one login portal. A lightweight LDAP directory holds the accounts and groups. A self-hosted single sign-on portal sits in front of every web app. Apps that speak OpenID Connect log in with it directly. The reverse proxy protects everything else.

This gives me three things:

  • One account, one email on my own domain, the same everywhere. No app keeps its own password database for me.
  • Groups decide access. Friends who use the file share are in one group. Family apps use another group. Admin tools are only for me. To add someone, I make one directory change.
  • Passwords are the exception. Only the password manager keeps its own master password, and it is self-hosted too.

The Sheikah Seal: A Mesh That Only Trusts My Keys

A WireGuard-based mesh joins all six nodes, my laptops and a few phones. It is very convenient, but that convenience has a catch. Normally, the company that runs the mesh’s coordination service can add a device to your network.

Tailnet Lock removes that trust. When it is on, a new device can join only if a key I hold signs it. The coordination server can relay the request, but it cannot approve it.

I have two signers:

  • my workstation, and
  • the Sheikah Seal: a tiny Alpine Linux container (one core, 256 MB of RAM). Its only job is to hold a signing key and sign devices.

With two signers, the loss of one machine does not lock me out. For automation, the Seal can pre-sign an auth key. Then a new server can join without my manual approval. For the worst case, I keep break-glass “disablement” secrets in my password manager. Without them, nobody can switch the lock off, and that includes me.

My lesson from the setup: take it slowly. Initialize it from a machine in front of you. Check that every existing device is still trusted. Only then celebrate.

The Sheikah Veil: A Disposable Browser for Friends

Sometimes a friend wants to look something up, and they do not want it tied to their own connection. I did not want to hand out VPN credentials. So I built the Sheikah Veil: a remote browser in a pop-up window.

How it works:

  • A friend signs in to my file-sharing site with their single sign-on account and clicks the Veil button.
  • The lab starts a brand-new, throwaway Chromium container only for them. It streams the container into the pop-up over a websocket.
  • Their browsing exits through one of my cloud nodes. It does not use my home connection or theirs.
  • The session ends after two hours at most. Then the lab deletes the container. Nothing stays: no history, no cookies, no downloads.

The part I care most about is the kill switch. The container’s firewall allows only two things. One is DNS to my own resolver. The other is traffic that leaves through the mesh exit.

If the exit node drops, the browser does not fall back to my home line. It loses the internet. I tested exactly that before I let anyone use it.

I made it limited on purpose. It allows two sessions at a time and no audio. My DNS does the content filtering. The log records only who started a session and when it ended. Never what they browsed.

My Own DNS, Asking My Own Servers

Every device at home gets its DNS from a pair of resolvers that I run:

  • They block trackers, ads, malware and phishing domains with curated threat lists.
  • I tested the lists against my own query log first, so they do not break streaming.
  • They do not send every lookup to one big public resolver. They ask resolvers on my own three cloud nodes in parallel. The fastest answer wins.
  • Only if all three are down do they fall back to encrypted public DNS.

So no single outside company sees every domain that my house looks up. There is a primary and a secondary, so a reboot does not take DNS away.

A Privacy Exit for the Whole House

The household’s default gateway is not the router. It is a small gateway container. It sends traffic out through a privacy exit on a cloud node, so websites see that node and not my home address. A standby on another machine takes over in seconds if the gateway disappears. The standby falls back to the plain home line.

Some traffic skips the exit on purpose: game downloads (for speed), streaming boxes and the work laptop. The work laptop’s corporate VPN does not like double tunnels. Privacy that breaks your workday does not last long.

Keeping My Own Records

A lot of sovereignty is a choice to keep your own copy:

  • Location history. Years of location history now live in a self-hosted tracker on my hardware. I imported it from the big platform and then switched it off there. Phones report to the tracker directly.
  • Documents. Scanned paperwork goes into a self-hosted document manager. A local AI suggests tags and titles there. The documents never leave the house to be “understood”.
  • Reading. A self-hosted RSS reader replaces algorithmic feeds. It also builds a twice-daily newspaper and per-category books for my e-reader. I locked the e-reader to the home network.
  • Mail. My own mail server for my domain, with the inbox on hardware I control.
  • Code. A private, self-hosted git forge. Nothing I write is public unless I decide so.
  • Notifications. A self-hosted push server replaces third-party notification services.
  • Knowledge. An offline copy of Wikipedia and other references, slowly downloaded to the NAS. The library works even when the internet does not.
  • Music. My own radio station, built from twelve years of liked songs. I store them locally in high quality.

Secrets Never Leave in Plain Text

Two habits keep secrets where they belong:

  • Config snapshots are scrubbed. Every night, configuration from every node goes into a private repository.
    • Before that, a scrubber redacts credentials, and a secret scanner must approve the result.
    • Once the scrubber missed a config format. I fixed the rule and rotated the exposed secret the same day.
  • Backups are encrypted before they leave. Backups go to a local backup server first.
    • The newest copy also goes to a grab-and-run USB stick.
    • An encrypted copy goes offsite. The cloud storage only ever sees ciphertext.

Seeing It: Why I Love Live Metrics

When privacy work works, you cannot see it. That is exactly why I want to see it. I am a data person, and beautiful live metrics are how I trust the system.

God’s Eye View

One of my favorite things to leave on a screen is God’s Eye View. It is an open-source, photorealistic 3D globe that plots live public data: aircraft, ships, satellites, earthquakes, traffic and public cameras. I run it on my own hardware with my own API keys.

Screenshot: God's Eye View showing live aircraft and satellites over the globe

It is stunning, and it is also a privacy lesson. Everything on it comes from public sources. I watch flights, ships and cameras update in real time. That is the best reminder I know of how much the world already broadcasts. It is why I am careful about what my own systems broadcast.

The Observatory

The everyday view is my lab’s observatory. This dashboard pulls from 24 sources and redraws all the time. The sources include every node’s CPU, memory and temperatures, plus the GPU and backups. They also include DNS, the mesh, the privacy exit, uptime monitoring, internet usage, and the media and AI services.

Screenshot: the observatory dashboard

I follow a few principles for every chart in it:

  • Status is never color alone. Every state has an icon and a word. So it works for color-blind eyes and in screenshots.
  • Palettes are validated against the real background in both dark and light themes. I do not pick them by eye.
  • Every bar is labelled with its value. Every chart has a table view for exact numbers.
  • Stale data is dimmed, not hidden. If one source stops answering, its card fades and says so. The other 23 keep updating.
  • Problems are actionable. Each issue opens into “how to verify” steps with copyable commands, plus an acknowledge button.
    • So the dashboard tells me what to do. It does more than show that something is red.

The same data also feeds the e-ink dashboard on my nightstand and a living wallpaper on my desktop. One collector, many calm views.

Screenshot: uptime monitoring, every service and scheduled job at a glance

Screenshot: the observatory's internet traffic view, with the billing cycle and busiest devices

What’s Next: Grafana for the Database Cluster

There is one place that I still cannot see well: my central database cluster. It is a PostgreSQL 15 cluster. It serves the SSO portal, the password manager, the document manager, the git forge and more. It has 10 databases, about 132 MB, and about 20 connections at any moment. It is small, but everything depends on it.

I want to add Grafana to the stack for exactly this. The plan:

  • Its own container, LAN-only, behind the single sign-on portal.
    • It uses Grafana’s built-in OpenID Connect login.
    • Its dashboards have a theme that matches the rest of the lab.
  • Grafana’s own settings stored in the same cluster. My house rule: new services use the central database. They do not use a private SQLite file or a sidecar database.
  • A read-only monitoring role for the data source. It uses PostgreSQL’s built-in pg_monitor role. So dashboards can see statistics but never touch data.
  • Query statistics turned on with the pg_stat_statements extension. Then I can see which app runs the slowest or most frequent queries.
  • Alerts to my own push server when connections spike, the cache hit ratio drops, or a replica falls behind.

The monitoring role is two statements:

-- Read-only role for Grafana: statistics views only, no table access
CREATE ROLE grafana_ro LOGIN PASSWORD 'CHANGE_ME';
GRANT pg_monitor TO grafana_ro;

Query statistics need one config change and a restart. Then they need the extension in the database that hosts the dashboards:

# postgresql.conf
shared_preload_libraries = 'pg_stat_statements'
CREATE EXTENSION IF NOT EXISTS pg_stat_statements;

These are the first panels that I plan. Each one is plain SQL against the statistics views:

-- Connections per database and application
SELECT datname, application_name, state, count(*)
FROM pg_stat_activity
WHERE datname IS NOT NULL
GROUP BY 1, 2, 3
ORDER BY 4 DESC;

-- Cache hit ratio per database (aim for > 99%)
SELECT datname,
       round(100.0 * blks_hit / nullif(blks_hit + blks_read, 0), 2) AS cache_hit_pct
FROM pg_stat_database
WHERE datname IS NOT NULL;

-- Commits, rollbacks and size per database (graph the deltas over time)
SELECT datname, xact_commit, xact_rollback, pg_database_size(datname) AS bytes
FROM pg_stat_database
WHERE datname IS NOT NULL;

-- The ten most expensive queries by total time
SELECT left(query, 80) AS query, calls,
       round(total_exec_time) AS total_ms, round(mean_exec_time, 1) AS mean_ms
FROM pg_stat_statements
ORDER BY total_exec_time DESC
LIMIT 10;

I would also add a panel for the other cluster, to watch replication lag. That cluster has its primary on a cloud node and a hot standby on another. I also want a “backup freshness” stat. Its source is the same nightly dump job that already reports to my uptime monitor.

Grafana will be one more beautiful view. More important, it will make the most important data in my lab as visible as everything else.

Takeaways

  • Write down your rule. “Personal data runs on hardware I control, under accounts I own, and I can see it working.” That rule settled a dozen design decisions for me.
  • Own the identities and the keys, and not only the servers. Tailnet Lock changed “trust the mesh provider” into “trust my two signers”.
  • When you share access, share a disposable tool with a kill switch. Do not share your network.
  • Keep your own copy of the records that describe your life: location, documents, mail, reading, music.
  • Encrypt before anything leaves the house. Scrub before anything lands in git.
  • Make privacy visible. Live, honest, well-designed dashboards show you that it works.