GeezerVison is showing github.com — openclaw: enforce token auth for non-loopback gateway callers (comms design G2/G4) · Issue #2300 · developing-today/code
openclaw: enforce token auth for non-loopback gateway callers (comms design G2/G4) #2300DescriptionFrom the OpenClaw comms design for #2023 (doc PR for task 3381), gap G2/G4.
The OpenClaw gateway binds the laptop tailnet address (100.99.113.103:18789, verified by ss) while gateway.auth.token is a secret reference the CLI path cannot resolve and status reports loopback auth "none". The socket bind — not the "Tailscale exposure: off" status flag — is authoritative for reachability, so the tailnet bind is real exposure and must require authentication.
Work:
Acceptance criteria:
Activitydeveloping-today commented on Oct 29, 2026 developing-today commented on Nov 3, 2026 agent-note:v1
state: triaged (coverage pass)
Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 40 (priority/normal). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
Found via: coverage pass 2026-11-03 dezren39 commented on Nov 3, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 17, 2026 🤖 Agent note · done (triaged — remainder routed as task 19760)
dezren39 commented on Nov 17, 2026 agent-note:v1
state: verified live (task 19760, lane any-q)
issue #2300 - authorized non-loopback gateway call + per-consumer caller identity
The remainder named by tasks 13141 / 18220 is now demonstrated live (2026-11-17T08:41Z), from the laptop against the tailnet gateway ws://100.99.113.103:18789:
- A probe client presented the gateway token - fetched at probe time from the secrets-manager entry named openclaw.gateway-token, held only in the probe process's environment; no credential value was read into any file, doc, or chat, and none is recorded here - and completed the gateway connect handshake (protocol v4; server version 2026.10.7), then made an authorized health call, which returned ok.
- Distinct per-consumer caller identity: in this gateway build the connect frame's client.id is the application class (gateway-client), and per-consumer identity is carried as client.instanceId. The probe connected successfully as instanceId muse-gateway-client (the first consumer named in the comms design decision) and as instanceId fleet-verification-probe - two distinct named identities, each with its own authorized connect + health call.
- Combined with the 2026-11-08 verification (synthetic invalid token rejected, close code 1008), G2 is met on the tailnet bind in both directions: unauthorized callers are rejected, and authorized callers succeed under a named per-consumer identity.
The outcome is recorded in the comms design doc (G2 status + section 5 follow-up status) in the PR that closes this issue. Probe iterations along the way also pinned the current handshake contract for future consumers: string request ids, client.id from the gateway's client-id enum, and protocol v4 (a v3 connect is refused with PROTOCOL_MISMATCH naming expectedProtocol 4).
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|