Retroactively author 15 grouped detail docs covering the backend functional (feat/fix) commits made before the change ledger was established (fad48ff), closing the ledger's detail-doc axis for the pre-convention history. Each doc groups a feature's constituent commits, lists their SHAs with subjects, and carries a backfill note stating it was reconstructed from git history on 2026-07-07 and not independently re-verified (current tree green at9911b8c). Add a Detail docs section to INDEX.md linking every detail doc (the 6 existing + 15 backfill) to the commit(s) it covers, so a doc is findable from the index without a column on the auto-generated ledger table. Catch the table up with the missing9911b8crow. Scope: backend (Go/Java/K8s) only, per the ledger's stated convention that frontend/panel commits are the collaborator's UI work; non-functional commits (docs/style/chore/refactor) keep their table row without a dedicated detail doc.
2.7 KiB
Cloudflare Tunnel + Access edge (cfsetup) + NodePort fencing (ledger backfill)
- Type: feature + fix — retroactive ledger entry
- Date: 2026-06-27 – 2026-07-01
- Area:
internal/cfsetup(pure core + integration runner),cmd/felis(TUI edge flow), edge nftables fence - Commits:
53a7664feat(cfsetup): recommended Cloudflare Tunnel + Access edge (§14) — domain- and IdP-agnostic; the load-bearingvalidateFailClosedallowlist refuses any policy that could be public; fail-shut 404 catch-all; the raw game host is never proxiedba13839feat(breakglass): optional Tunnel + Access setup in the sudo TUI, an independent peer of Owner provisioninga531f5efix(cfsetup): keep the connector install in the host apply layer only (drop the duplicateStartConnector)2810fe8fix(cfsetup): repoint a stale DNS record when routing a tunnel hostname7d3be64feat(cfsetup): start the tunnel connector as a setup stepe058a64feat(edge): close the panel NodePort to the public after the tunnel is up — nftables at preroutingraw(-300), before kube-proxy's NodePort DNAT, gated on the connector actually serving; loopback accepted first so the connector origin hop is untouched
- Tasks: #37 (fence panel NodePort to public after tunnel)
What it did
Stood up the optional one-click Zero-Trust edge: a Cloudflare Tunnel routing only the web
hostnames plus a fail-closed Access application, provisioned from the sudo TUI against the
operator's own Cloudflare account. e058a64 then closes the Access-bypass hole where a
direct https://<node-ip>:<nodeport>/ with the right Host header reached the origin
behind Access, by fencing the NodePort at the nftables raw hook so the packet is caught on
its original destination port — but only once the connector is confirmed serving, so
fencing never severs the only web path to a live origin.
Why
Access is only a security boundary if the origin cannot be reached around it. The
fail-closed policy guard (validateFailClosed) and the NodePort fence are the two
load-bearing safety properties: a policy that could be public aborts the run with nothing
created, and a routable-but-unfenced NodePort would defeat the whole edge.
Backfill note. Reconstructed 2026-07-07 from the commit history. The policy guard, ingress generation, request bodies, gating, and the nftables ruleset shape / conn-count gate are unit-tested; the live cloudflared/Cloudflare-API and
nftcalls are INTEGRATION-ONLY (need a real account). KNOWN-LIMITATION: the fence targets nftables; firewalld-native coordination is deferred. Not independently re-verified for this doc; current tree green at9911b8c.