Files
forgeway/REPORT.md
T
Dolon (Agent)andClaude Fable 5.1 1bec7c784c DNS + ingress: the confirmed names, split-horizon alias, providers on https
Rick confirmed forgeway.<site>.falkvinge.net and the local-first alias
forgeway.services.falkvinge.net. README documents the alias as the front
door, the per-site names as explicit handles, and exactly how the Serenity
override keeps the alias LOCAL (host-record + local= on both Serenity
Pi-holes; the local= line closes the dual-stack AAAA bypass).

OpenClaw providers now point at the https alias with a placeholder apiKey:
OpenClaw exempts plain-IP http base URLs from needing a key but not https
hostnames. scripts/technitium.py ships the Technitium API helper used for
the records (zones / records / add / resync / logtail).

REPORT.md addendum carries the verification table from real clients at both
sites and the findings made on the way.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-18 14:56:12 +00:00

15 KiB
Raw Blame History

forgeway — build report, 2026-09-18

Two OpenAI-compatible query endpoints over forge's Ollama gpt-oss:120b, deployed as one instance per cluster on Lounge (Rocinante) and Serenity (Niðavellir). Working, in GitOps, monitored, and reachable by IP. Update, later the same day: Rick confirmed the name; DNS, ingress and the split-horizon alias are live and verified — see the addendum at the end of this file.

Lounge Serenity
Address http://172.19.10.90 http://172.24.10.21
Replicas 2/2 2/2
Kuma monitor #307, 200 - OK #57, 200 - OK
Real completion latency 54 ms warm 383 ms warm (mesh hop)
Acceptance checks 13/13 13/13

Image git.falkvinge.net/rick/forgeway:0.1.1, linux/amd64 + linux/arm64 (both clusters are arm64-majority: Lounge 12/15, Nidavellir 9/12), anonymously pullable from the Gitea registry, so no imagePullSecret is needed.


Three blockers found on forge, and what was changed

None of these were visible from the brief; all were found by probing.

1. Ollama was bound to 127.0.0.1 only. Nothing off-box could reach it. Added a new systemd drop-in /etc/systemd/system/ollama.service.d/20-listen.conf with OLLAMA_HOST=0.0.0.0:11434. The existing 10-gpu-pinning.conf was not touched, and the pinning was re-verified after the restart: llama_prepare_model_devices: using device CUDA0 ... (0000:02:00.0) — still card 1, as intended.

2. forge's ufw denied both clusters. Default deny-incoming with a single allow for the OpenClaw VM. Added three port-scoped rules:

11434/tcp  ALLOW IN  172.19.9.0/24    Lounge k8s nodes
11434/tcp  ALLOW IN  172.24.9.0/24    Nidavellir k8s nodes
11434/tcp  ALLOW IN  172.19.0.1       Lounge pfSense SNAT, cross-site Serenity traffic

3. Serenity traffic arrives SNAT'd. Serenity pods reach forge with source 172.19.0.1 — the Lounge pfSense — not their real 172.24.9.x. Confirmed in forge's UFW BLOCK log. The 172.24.9.0/24 rule alone was therefore never going to match.

⚠️ Security note, for Rick's judgement. Rule 3 is wider than I would like: it allows anything pfSense forwards out of the Tailscale mesh to reach Ollama, which has no authentication. It is scoped to port 11434, but it is not scoped to Serenity. The clean fix is a pfSense outbound-NAT exemption so tailscale→DMZ traffic keeps its original source (this matches the documented NoSNAT intent already set on the Serenity UDM), after which rule 3 can be deleted and 172.24.9.0/24 does the work. That is an edge-firewall change on your core router, so I did not make it.


Design decisions worth knowing

Discovery, not configuration. Each instance holds an ordered candidate list — the stable DNS name forge.dmz.falkvinge.net, then the Lounge literal 172.19.0.130, then the future Serenity literal 172.24.0.130. Candidates are probed concurrently but awaited in priority order, so the happy path is one fast round trip and dead candidates never add latency. When silicon moves, re-pointing DNS is enough; if DNS is stale, the Serenity literal already in the list catches it. Neither instance assumes a site.

Readiness is not gated on forge. This looks wrong at first glance and is the single most important choice here. If readiness depended on forge, Kubernetes would evict every pod from the Service during a forge outage — callers would get a connection refusal instead of the 503 local-strict promises, and Kuma would see "no response" (router gone) instead of 503 (forge down). Forge health is exposed separately on /healthz; liveness and readiness only answer for the router process.

Health is a real completion. /healthz runs a 1-token completion, because forge can be up with Ollama stopped — its state on the morning of the build. Verdicts are cached 5 s (3 s when unhealthy) behind a single-flight lock, so concurrent traffic collapses into one probe.

A real bug the cloud path surfaced. gpt-5.4-mini rejects max_tokens outright (400 Unsupported parameter ... use max_completion_tokens), while Ollama accepts only max_tokens. The first fallback attempt failed on exactly this. The router now translates between the two spellings per backend, so a caller can write either and both endpoints work. Verified against the live API: only max_tokens is affected — temperature, top_p and stream are all accepted.


Verification

scripts/verify-cluster.sh runs 13 checks from inside each cluster. All 13 passed on both. The "forge unavailable" cases were produced with a throwaway Deployment pointed at a dead upstream — Ollama on forge was never stopped.

# Check Lounge Serenity
1 /healthz, forge up 200 200
2 strict chat, forge up 200, backend=forge, PONG 200, backend=forge, PONG
3 optimistic chat, forge up 200, backend=forge 200, backend=forge
4–5 /v1/models both modes 200 200
6 strict chat, forge unavailable 503, clean error body 503, clean error body
7 optimistic chat, forge unavailable 200, backend=cloud, PONG 200, backend=cloud, PONG
8 /healthz, forge unavailable 503 503
9–10 liveness / readiness, forge unavailable 200 / 200 200 / 200
11 streaming through forge 200, 53 SSE chunks 200, 46 SSE chunks
12–13 bare /v1 and unknown-mode guards 404 / 404 404 / 404

Check 1 on Lounge recorded latency_ms: 28056 — a genuine cold model load, which is why the Kuma timeout is 48 s rather than something tighter.

Kuma DOWN path proven end-to-end, not inferred: a temporary monitor pointed at a temporary 503-returning instance produced status: 0, "Request failed with status code 503", while the real monitor simultaneously read status: 1, "200 - OK". Both the temp monitor and the temp deployment were removed afterwards.

OpenClaw providers proven live:

forgeway-strict/gpt-oss-120b      -> PROVIDER-PROOF-OK  (23.1 s)
forgeway-optimistic/gpt-oss-120b  -> PROVIDER-PROOF-OK  (21.1 s)

Two corrections to the brief

  • Serenity Kuma is 192.168.24.98, not 172.24.24.98. The brief's address does not respond; the memory note was right, and the monitor was created on the correct host.
  • The next free Lounge LB IP was .90, not .89 — .89 is clipcascade, already in use. .90 was taken; docs/ip-allocations.md is updated (11 of 19 in the band used).

Open for Rick

  1. The DNS name. Resolved — confirmed and built; see the addendum.
  2. The pfSense SNAT exemption described above, which would let me tighten forge's firewall rule from "the mesh" to "Serenity's nodes".
  3. Monitoring vs. LoRA training. A 60 s health probe keeps gpt-oss:120b resident on card 1, which collides with an ai-toolkit run. Levers are documented in the README (pause the monitor, or FORGEWAY_HEALTH_COLD_LOAD=false). If you would rather monitoring never hold the card, say so and I will change the default — the trade is detection latency and a cold load per probe.

Where everything lives

Service source /home/rick/repos/forgeway (this repo)
Lounge manifests lounge-cluster-config/apps/forgeway/manifests/, base/apps/forgeway/ — commit bba7898
Serenity manifests serenity-cluster-config/apps/forgeway/, base/apps/forgeway-app.yaml — commit 4a32fde
Kuma ops files deploy/kuma/ops-{lounge,serenity}.json
OpenClaw provider config deploy/openclaw/providers.batch.json
Image git.falkvinge.net/rick/forgeway:0.1.1

Addendum, 2026-09-18 later — DNS and ingress (name confirmed by Rick)

The open item is closed. Rick confirmed forgeway.lounge.falkvinge.net, forgeway.serenity.falkvinge.net (Chalet later) and the split-horizon local-first alias forgeway.services.falkvinge.net. All three are live at both sites and verified from real clients, and the OpenClaw providers now use the alias over HTTPS.

What was built

Ingress at each site (apps/forgeway/.../ingress.yaml, ingress-nginx, class nginx), serving forgeway.services.falkvinge.net, the per-site name, and the .dmz.<site>. CNAME hop. No SSL redirect — this is an API for scripts, and neither httpx nor the OpenAI SDK follow a 308 on POST by default. Buffering off and 600 s timeouts for SSE streams. HTTPS on the alias presents a valid certificate at both sites (*.services.falkvinge.net is on both internal wildcard certs); the per-site names are http:// only, because neither internal cert carries *.lounge. / *.serenity.. Adding those SANs to the two internal cert-manager Certificates is a one-line change if ever wanted. The entrance bundle was not touched and must not be — .services. stays internal-only by convention.

DNS. I followed the estate's existing .services. pattern exactly: every record in the services.falkvinge.net zone is a CNAME chain that ends at a site ingress, so:

Record Zone (primary) Points at
forgeway.services services.falkvinge.net (Lounge Technitium) forgeway.dmz.lounge.falkvinge.net
forgeway.dmz.lounge dmz.lounge.falkvinge.net (Lounge) ingress.dmz.lounge.falkvinge.net → 172.19.10.11
forgeway.lounge lounge.falkvinge.net (Lounge) forgeway.dmz.lounge.falkvinge.net
forgeway.dmz.serenity dmz.serenity.falkvinge.net (Serenity Technitium) ingress.dmz.serenity.falkvinge.net → 172.24.10.11
forgeway.serenity serenity.falkvinge.net (Serenity) forgeway.dmz.serenity.falkvinge.net

The split-horizon override — the whole point. Serenity's Pi-holes forward everything under falkvinge.net except serenity. to the Lounge Pi-holes, so without an override a Serenity client would silently receive the Lounge ingress and the remote instance. Both Serenity resolvers therefore pin the alias to the Serenity ingress 172.24.10.11:

  • 172.24.10.201 (k8s, pods pihole + pihole-b behind one Service): in GitOps, serenity-cluster-config/apps/pihole/pihole.yaml. The ConfigMap is a subPath mount, so the two pods were restarted one at a time (no outage — they share the LB).
  • 172.24.1.201 (LXC): via the Pi-hole v6 API — a dns.hosts entry and one misc.dnsmasq_lines entry (that list was empty; nothing was overwritten).

Both carry host-record=forgeway.services.falkvinge.net,172.24.10.11 and local=/forgeway.services.falkvinge.net/. The second line closes a real hole: with only the host-record, AAAA queries were still forwarded to the Lounge. Today that returns no address, but the day the Lounge ingress gains an IPv6 record every dual-stack Serenity client would prefer it and quietly reach the remote instance — the same dual-stack bypass that defeated the Lounge overrides on 2026-08-24. AAAA is now NODATA on both.

Interpretation I made, stated plainly

The brief said each site's resolver should answer with "its own instance's MetalLB IP". I pointed the alias at each site's ingress-nginx (also a MetalLB IP) rather than at the forgeway Service IP directly, because that is how every other .services. name in the estate works and it is the only way the alias gets a valid certificate. Local-first is preserved: each site's ingress fronts only its own instance. The raw Service IPs (172.19.10.90, 172.24.10.21) remain reachable as DNS-independent doors.

Verification — the alias returns the LOCAL instance, never the remote one

Client Site forgeway.services → https://…/healthz x-forgeway-site
OpenClaw VM (resolvers .1.201/.10.201) Lounge 172.19.10.11 200, cert OK lounge
Lounge Kuma LXC Lounge 172.19.10.11 200, cert OK lounge
Niðavellir pod (CoreDNS → both Serenity Pi-holes) Serenity 172.24.10.11 200, cert OK serenity
Serenity Kuma LXC, @172.24.10.201 and @172.24.1.201 Serenity 172.24.10.11 200, cert OK serenity

Per-site names, from both sites: forgeway.lounge → 172.19.10.11 / site=lounge; forgeway.serenity → 172.24.10.11 / site=serenity. A real local-strict completion through https://forgeway.services.falkvinge.net from the Lounge answered from forge.

OpenClaw providers forgeway-strict/gpt-oss-120b and forgeway-optimistic/gpt-oss-120b now use the alias over HTTPS; both returned PROVIDER-PROOF-OK (22 s each, real completions). One wrinkle: OpenClaw exempts a plain-IP http:// base URL from needing a key but demands one for an https:// hostname (missing-provider-auth), so both carry the placeholder apiKey: forgeway-no-auth. It is not a credential; the router ignores the header. Side effect: openclaw doctor --lint now lists those two apiKey paths among its "plaintext secret-bearing config fields" — a false positive for these two, alongside the pre-existing entries it already flagged.

Findings on the way (none caused by this work)

  1. Both LXC Pi-hole v6 APIs have no password set — 172.19.1.201 and 172.24.1.201 both answer /api/auth with "no password set". Any host that can reach them can rewrite their DNS config without credentials. It made today's LXC edit trivial; it is worth a password. The k8s Pi-holes require auth.
  2. The Serenity Kuma LXC's default resolver is dead for internal names. It resolves via the UDM (192.168.24.1), which times out on every falkvinge.net name, while both Serenity Pi-holes answer it directly and instantly. Its monitors work because they use IPs. Same class as the Lounge Kuma resolv.conf note.
  3. Lounge .1.202 lags Serenity zone changes by up to 15 minutes. It is a tier-two secondary (Serenity primary → .10.202 → .1.202) and .10.202 sends no NOTIFY, so .1.202 only refreshes on its 900 s SOA timer, and the Lounge Pi-holes round-robin both Technitiums. For a quarter of an hour after any Serenity record is created, Lounge clients get it about half the time — then negative-cache the miss for another 900 s. I resynced .1.202 by API for today; the log confirms it. Optional hygiene, your call: notify: SpecifiedNameServers → 172.19.1.202 on .10.202's two Serenity secondaries.

I initially misread this last one as a month-old broken replica; the serials were simply the primary's last-change dates. Corrected here and in memory.

Where everything lives (additions)

Lounge ingress lounge-cluster-config/apps/forgeway/manifests/ingress.yaml — commits 674d09e, 15b226e
Serenity ingress + Pi-hole override serenity-cluster-config/apps/forgeway/ingress.yaml, apps/pihole/pihole.yaml — 82fef33, f44dbb8, 532ba68
Technitium records live on 172.19.1.202 and 172.24.1.202 (zone data is not in git by design)
LXC Pi-hole override live on 172.24.1.201 via API (dns.hosts + misc.dnsmasq_lines)
Technitium helper scripts/technitium.py (zones / records / add / resync / logtail)