Hogman Work

Architecture & security

How packets move across a pen, what runs on your machine and our host, how public HTTPS works without public IPs, and the exact limits we haven't closed yet.

Packet flow & trust boundaries

Hogman separates the data plane (traffic between members and shares) from the control plane (device keys, ACL policy, and pen DNS). Only the control plane's front door and relay ports listen on the public internet.

Data plane (member browser to a share — control server sees ciphertext only)

  Browser
    │  PAC sends *.<pen>.pens.hogman.network to 127.0.0.1:<port>;
    │  all other traffic goes directly to the internet as usual
    ▼
  hogman-join  (unprivileged Go binary, userspace tsnet — blind TCP :443 CONNECT tunnel)
    │  1. Queries pen DNS (port 53 inside mesh) -> random CGNAT 100.x / fd7a:: address
    │  2. Verifies resolved IP is an enrolled peer via tsnet WhoIs (never dials LAN/127.0.0.1)
    │  3. Enforces :443 only (D-11)
    ▼
  [ WireGuard E2E encrypted tunnel + inner TLS 1.3 ]   (direct UDP, or DERP relay ciphertext)
    ▼
  hogman-join share  (separate tsnet server node, local CertMagic keypair)
    │  Reverse-proxies localhost:<port> or serves static dir via Go os.Root (no symlink escape)
    ▼
  Your web app or static site

Control plane & certificate issuance (metadata visible; no application payloads)

  *.gate.hogman.network  -->  Shared Caddy front door (strict path allowlist + TLS wildcard)
                                │
                                ▼
                        Per-pen container network (pen-<name>-core, 4 containers)
                          ├── Headscale   (random 100.64.0.0/10 IPs, WireGuard keys, ACL grants)
                          ├── core-mesh   (Tailscale node terminating mesh DNS & portal IP)
                          ├── Registrar   (Go ledger, pen DNS :53, Unix socket API to portal)
                          └── Portal      (home.<zone> Caddy + CertMagic local key)

  ns1.hogman.network     -->  Authoritative miekg/dns server (:53 UDP/TCP)
                                Serves ONLY _acme-challenge.* TXT, SOA, NS, CAA (no A/AAAA under pens.)

The local proxy inside hogman-join is a blind TCP CONNECT tunnel. It forwards encrypted TLS bytes straight between your browser and the share without terminating, inspecting, or re-signing TLS.

Pen components & default-deny policy

Each hosted pen runs four isolated containers (~75 MB total memory) on its own Docker bridge network, with pinned versions in core/compose.yaml:

ComponentSoftwareRole
Control & relayHeadscale Registers devices, distributes WireGuard keys, pushes ACLs and mesh DNS, and relays encrypted WireGuard ciphertext when NAT blocks direct UDP.
RegistrarHogman (Go) Ledger for members, roles, invites, devices, names, and audit logs. Rebuilds Headscale ACLs, serves mesh DNS, manages home.<zone> certs, gates share DNS-01 TXT writes, and serves the portal API over a Unix socket.
PortalCaddy Serves home.<pen>.pens.hogman.network inside the mesh only.
Mesh anchorTailscale client Terminates the pen's internal DNS and portal IP inside the mesh.

Access policy is default deny and targets explicit device IPs (not self-asserted tags), rebuilt within ~2 s on membership changes (measured: suspend 2.0 s, resume 0.8 s, kick 2.1 s):

Device typeAccepts inbound fromCan dial outbound to
Personal (laptop/desktop)NobodyPen DNS & portal; tag:server shares on :443 only
Server (hogman-join share)Active members on :443 onlyPen services; other servers on :443
Unenrolled / suspendedNobodyNothing

Client isolation (hogman-join)

Joining a pen runs one unprivileged static Go binary embedding Tailscale's userspace tsnet stack:

Encryption & split-horizon DNS-01 HTTPS

Every request to a share is encrypted twice, with keys held by the two endpoints:

  1. Outer WireGuard tunnel: direct peer-to-peer WireGuard encrypted end to end (or ciphertext over the pen's DERP relay when NAT blocks direct UDP).
  2. Inner TLS 1.3 with standard web certificates: each share generates its own local keypair via embedded CertMagic. Private TLS keys never leave the server machine.

Publicly trusted certificates on private 100.x IPs work via split-horizon DNS-01:

Public-certificate trade-offs:

Threat model & trust boundaries

Hogman is private, not anonymous. Here is what each party can see or do, and what stops them:

AdversaryCan see or tryWhat stops them
Passive ISP, Wi-Fi, or internet scanner WireGuard UDP / DERP ciphertext to relay IP, plus public CT hostnames. Cannot resolve pen A/AAAA records or probe mesh ports. Zero public addresses under pens., strict front-door path allowlist, end-to-end WireGuard + inner TLS 1.3.
Compromised DERP relay or front-door proxy WireGuard public keys, packet timing/sizes, and front-door control HTTP traffic. Relay never holds WireGuard private keys or share TLS private keys.
Malicious member inside your pen Valid mesh identity and ability to resolve share names in the pen. Headscale ACL allows :443 toward tag:server only (no SSH, no lateral traffic, no exit nodes). serverMayUse blocks name/cert hijacking. Keepers can suspend or kick in ~2 s; kicked site names are retired permanently.
Hostile pen targeting your laptop Controls that pen's DNS replies, Headscale map, and invite payload. Unprivileged binary (no TUN/root daemon), no OS root CA, client-side zone validation, loopback Host checks, WhoIs dial pin, and :443-only proxy gate.
Compromised keeper or hosting server (control plane) Sees: member list, device keys/IPs, online times, mesh DNS lookups. Could try: enrolling a rogue device, rewriting ACLs, or writing a DNS-01 challenge TXT record. Cannot passively read WireGuard payloads or share TLS private keys. Any rogue certificate minted via DNS-01 must appear in public CT logs (no silent MITM). Support cannot recover accounts (D-16).

Host isolation & supply chain

$ gh attestation verify hogman-join --repo celtiberi/hogman

Full self-audit (OWASP ASVS, CIS Docker/Linux, SLSA): audit-2026-11.md · PKI architecture note: public-certificates.md.

Known limits & deliberate omissions

Spot something wrong or unclear? Edit the source in site/docs-src on GitHub.