Skip to content

Commit afedbeb

Browse files
author
i2cjak
authored
Merge pull request #220 from i2cjak/backplane/security-boundaries
Enforce browser origin checks and protect hub pairing credentials
2 parents 4df22a9 + 29132eb commit afedbeb

10 files changed

Lines changed: 356 additions & 31 deletions

File tree

‎LAWS.bend‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import Base
2+
import ./src/core/auth.bend as AUTH
3+
import ./src/core/http.bend as HTTPAUTH
24
import ./src/app/side_rows.bend as SR
35
import ./src/app/side_row_types.bend as SRT
46
import ./src/server/botnet.bend as MPLOG # mail perf runtime count
@@ -10650,3 +10652,15 @@ law mail_plane_indexed_hidden:
1065010652
for +u: U.Ui
1065110653
for ix: U.SIx
1065210654
{BV.Bv.plane.build.ix(False{}, u, ix) == BV.Bv.plane.none() : PLN.Plane}
10655+
# Browser provenance is mandatory even when a connection is otherwise trusted.
10656+
law auth_foreign_origin_denied:
10657+
for +trusted: Bool
10658+
for +path: String
10659+
for +token: String
10660+
{AUTH.Auth.allowed(trusted, [HTTPAUTH.Header{"origin", "https://foreign.example"}, HTTPAUTH.Header{"host", "localhost:3787"}], path, token) == False{} : Bool}
10661+
10662+
law auth_empty_remote_token_denied:
10663+
{AUTH.Auth.allowed(False{}, Nil{}, "/ws?token=", "") == False{} : Bool}
10664+
10665+
law auth_cookie_prefix_denied:
10666+
{AUTH.Auth.allowed(False{}, [HTTPAUTH.Header{"cookie", "bp_token=secret-extra"}], "/ws", "secret") == False{} : Bool}

‎PROOF.bend‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import Base
2+
import ./src/core/auth.bend as AUTH
3+
import ./src/core/http.bend as HTTPAUTH
24
import ./src/app/side_rows.bend as SR
35
import ./src/app/side_row_types.bend as SRT
46
import ./src/gfx/draw.bend as D
@@ -12342,3 +12344,11 @@ def Laws.mail_age_relative_deadline(): {==}
1234212344
def Laws.mail_plane_indexed_build(u): {==}
1234312345

1234412346
def Laws.mail_plane_indexed_hidden(u, ix): {==}
12347+
def Laws.auth_foreign_origin_denied(trusted, path, token):
12348+
{==}
12349+
12350+
def Laws.auth_empty_remote_token_denied():
12351+
{==}
12352+
12353+
def Laws.auth_cookie_prefix_denied():
12354+
{==}

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ backplane
7171

7272
Linux (x64, arm64) and macOS (Apple silicon). It installs into `~/.local/share/backplane` and keeps itself up to date (`BACKPLANE_NO_UPDATE=1` turns that off). Releases also carry an AppImage, a `.deb`, an AUR `PKGBUILD` and the Android APK. You need at least one agent CLI (`claude`, `codex`, `grok` or `muse`; Antigravity installs from Settings) and KiCad; FreeCAD for mechanical work. `backplane --headless` runs it without a window. To pair a phone, scan the QR code in Settings (Pairing link, QR code) with the app, or paste the pairing link.
7373

74+
Treat pairing links and QR codes as credentials. Browser pairing exchanges the fragment for an HttpOnly, SameSite=Strict cookie (Secure over HTTPS), then removes the fragment; existing browser tokens migrate out of local storage after a successful exchange. Native phone clients retain their pairing-link protocol. Remote clients need the pairing credential; a browser cannot inherit localhost access through a foreign origin or rebound hostname. Local programs running as your user remain trusted. Full Access runs agent tools with your user’s access; choose a more restrictive thread permission mode when wanted. Pairing controls access to the hub, and does not provide OS isolation for a Full Access agent.
75+
7476
On a Mac there is no native window yet: `backplane` runs the hub and you use it in the browser at http://127.0.0.1:3787 (and from your phone, as anywhere). Add `~/.local/bin` to your `PATH` if the installer says so.
7577

7678
Nightly builds of `main` are prereleases on the [Releases](https://github.com/i2cjak/Backplane/releases) page, each with its own installer: `curl -fsSL https://github.com/i2cjak/Backplane/releases/download/<tag>/install.sh | sh`.

‎src/core/auth.bend‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
import Base
2+
import ./http.bend as H
3+
4+
# Credentials are complete field values, never substrings of another field.
5+
def Auth.cookie.go(xs: List<&2, String>, +token: String) -> Bool:
6+
match xs:
7+
case Nil{}: False{}
8+
case +x <> t:
9+
Bool.or(String.eq(String.trim(x), "bp_token=" ++ token), Auth.cookie.go(t, token))
10+
11+
def Auth.credential(+hs: List<&2, H.Header>, +path: String, +token: String) -> Bool:
12+
Bool.and(Bool.not(String.is_empty(token)), Bool.or(
13+
String.eq(H.Http.header_of(hs, "authorization"), "Bearer " ++ token), Bool.or(
14+
String.eq(H.Http.param(path, "token"), token),
15+
Auth.cookie.go(String.split(H.Http.header_of(hs, "cookie"), ';'), token))))
16+
17+
# Browsers serialize Origin as scheme://authority, with no path or userinfo.
18+
# An absent Origin supports native clients; Fetch Metadata still rejects sites.
19+
def Auth.origin(+origin: String, +host: String) -> Bool:
20+
Bool.or(String.is_empty(origin), Bool.and(Bool.not(String.is_empty(host)), Bool.or(
21+
String.eq(String.to_lower(origin), "http://" ++ String.to_lower(host)),
22+
String.eq(String.to_lower(origin), "https://" ++ String.to_lower(host)))))
23+
24+
def Auth.browser(+hs: List<&2, H.Header>) -> Bool:
25+
Bool.and(Auth.origin(H.Http.header_of(hs, "origin"), H.Http.header_of(hs, "host")),
26+
Bool.not(String.eq(String.to_lower(H.Http.header_of(hs, "sec-fetch-site")), "cross-site")))
27+
28+
# A browser cannot use DNS rebinding to inherit a localhost exemption.
29+
def Auth.local.host(+host: String) -> Bool:
30+
Bool.or(String.eq(host, "localhost"), Bool.or(String.starts_with(host, "localhost:"),
31+
Bool.or(String.eq(host, "127.0.0.1"), Bool.or(String.starts_with(host, "127.0.0.1:"),
32+
Bool.or(String.eq(host, "[::1]"), String.starts_with(host, "[::1]:"))))))
33+
34+
def Auth.trusted(+trusted: Bool, +hs: List<&2, H.Header>) -> Bool:
35+
Bool.and(trusted, Bool.and(String.is_empty(H.Http.header_of(hs, "tailscale-user-login")),
36+
Bool.or(Auth.local.host(String.to_lower(H.Http.header_of(hs, "host"))),
37+
Bool.and(String.is_empty(H.Http.header_of(hs, "host")), String.is_empty(H.Http.header_of(hs, "origin"))))))
38+
39+
def Auth.allowed(+trusted: Bool, +hs: List<&2, H.Header>, +path: String, +token: String) -> Bool:
40+
Bool.and(Auth.browser(hs), Bool.or(Auth.trusted(trusted, hs), Auth.credential(hs, path, token)))
41+
42+
# Pairing never inherits the localhost exemption; it proves the shared secret.
43+
def Auth.pair(+hs: List<&2, H.Header>, +token: String) -> Bool:
44+
Bool.and(Auth.browser(hs), Bool.and(Bool.not(String.is_empty(token)),
45+
String.eq(H.Http.header_of(hs, "authorization"), "Bearer " ++ token)))
46+
47+
def Auth.cookie(+token: String, https: Bool) -> String:
48+
"Set-Cookie: bp_token=" ++ token ++ "; Path=/; HttpOnly; SameSite=Strict; Max-Age=31536000" ++ Bool.pick(String, https, "; Secure", "") ++ "\r\n"

‎src/server/server.bend‎

Lines changed: 41 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import ./proc.bend as P
1313
import ../core/json.bend as J
1414
import ../core/utf8.bend as U
1515
import ../core/http.bend as W
16+
import ../core/auth.bend as AUTH
1617
import ../core/model.bend as M
1718
import ../core/codec.bend as C
1819
import ../core/hub.bend as B
@@ -1314,12 +1315,9 @@ def Conn.file(+p: String) -> String:
13141315
def Conn.cache(+path: String) -> String:
13151316
Bool.pick(String, String.starts_with(path, "/chunk-"), "public, max-age=31536000, immutable", "no-cache")
13161317

1317-
# a websocket from plain loopback is trusted; anything else (the tailnet
1318-
# listener, or `tailscale serve` proxying with its identity headers) must
1319-
# carry ?token=<the pairing token>
1318+
# One authentication boundary for browser, native, upload and MCP requests.
13201319
def Conn.allowed(+trusted: Bool, +hs: List<&2, W.Header>, +path: String, +token: String) -> Bool:
1321-
Bool.or(Bool.and(trusted, String.is_empty(W.Http.header_of(hs, "tailscale-user-login"))),
1322-
Bool.and(Bool.not(String.is_empty(token)), Bool.or(String.contains(path, "token=" ++ token), String.contains(W.Http.header_of(hs, "cookie"), "bp_token=" ++ token))))
1320+
AUTH.Auth.allowed(trusted, hs, path, token)
13231321

13241322
# a websocket from this machine's loopback, not proxied by tailscale serve,
13251323
# is marked for the hub: only such a window (or the one in this process)
@@ -3060,15 +3058,15 @@ def Net.managed(n: Net) -> Bool:
30603058
# Effects
30613059
# -------
30623060

3063-
# the MCP endpoint of one thread's agent (token included, so the tailnet
3064-
# rules never lock an agent out)
3061+
# The loopback MCP endpoint of one thread's native agent. Shared pairing
3062+
# credentials stay out of provider arguments and generated configuration.
30653063
# (gen: the process's generation, B.Gen.mcp: a call from a process that is
30663064
# no longer the thread's may only read)
30673065
def Hub.mcp_url.g(+cfg: Cfg, +thread: String, +gen: String) -> String:
3068-
"http://127.0.0.1:" ++ U32.show(Cfg.port(cfg)) ++ "/mcp/" ++ B.Gen.mcp(thread, gen) ++ "?token=" ++ Net.token(Cfg.net(cfg))
3066+
"http://127.0.0.1:" ++ U32.show(Cfg.port(cfg)) ++ "/mcp/" ++ B.Gen.mcp(thread, gen)
30693067

30703068
def Hub.mcp_url(+cfg: Cfg, +thread: String) -> String:
3071-
"http://127.0.0.1:" ++ U32.show(Cfg.port(cfg)) ++ "/mcp/" ++ thread ++ "?token=" ++ Net.token(Cfg.net(cfg))
3069+
"http://127.0.0.1:" ++ U32.show(Cfg.port(cfg)) ++ "/mcp/" ++ thread
30723070

30733071
def Cfg.mtext(c: Cfg) -> String:
30743072
match c:
@@ -3214,7 +3212,7 @@ def Tailnet.https.k(none: Bool, +name: String, +token: String, +inbox: Chan(Msg)
32143212
Log.info("tailscale serve did not report a DNS name")
32153213
case False{}:
32163214
do IO<Unit>:
3217-
IO.print("Backplane over HTTPS on your tailnet: " ++ TN.Tailnet.link("https://" ++ name, token))
3215+
IO.print("Backplane over HTTPS on your tailnet: https://" ++ name ++ "/ (pair in Settings)")
32183216
ok : Result<&1, &1, Msg, Unit> <- Chan.send(Msg, inbox, LinkFound{TN.Tailnet.report("reachable", TN.Tailnet.link("https://" ++ name, token))})
32193217
return Unit{}
32203218

@@ -5167,10 +5165,17 @@ def Conn.is_lock(req: W.Request) -> Bool:
51675165
case W.Request{m, p, _}:
51685166
Bool.and(String.eq(m, "POST"), String.starts_with(W.Http.route(p), "/lock/"))
51695167

5168+
def Conn.lock.browser(ok: Bool, s: Socket, +op: String, +len: Nat, rest: List<&2, U32>, +inbox: Chan(Msg)) -> IO(Unit):
5169+
match ok:
5170+
case True{}:
5171+
IO.bind(Socket & String, Unit, H.Sock.peer(s), r => LockHttp.peer(r, op, len, rest, inbox))
5172+
case False{}:
5173+
Conn.finish(s, W.Http.text("403 Forbidden", "cross-origin request refused"))
5174+
51705175
def Conn.route.lock(lock: Bool, s: Socket, +req: W.Request, rest: List<&2, U32>, +web: String, +id: U32, +inbox: Chan(Msg), +trusted: Bool, +token: String) -> IO(Unit):
51715176
match lock req:
5172-
case True{} W.Request{_, +p, hs}:
5173-
IO.bind(Socket & String, Unit, H.Sock.peer(s), r => LockHttp.peer(r, String.drop(W.Http.route(p), 6n), J.Json.get_nat(J.Json.obj([J.KV{"n", J.Num{W.Http.header_of(hs, "content-length")}}]), "n", 0n), rest, inbox))
5177+
case True{} W.Request{_, +p, +hs}:
5178+
Conn.lock.browser(Bool.and(AUTH.Auth.browser(hs), AUTH.Auth.trusted(True{}, hs)), s, String.drop(W.Http.route(p), 6n), J.Json.get_nat(J.Json.obj([J.KV{"n", J.Num{W.Http.header_of(hs, "content-length")}}]), "n", 0n), rest, inbox)
51745179
case False{} _:
51755180
Conn.route.mcp.raw(Conn.is_mcp(req), s, req, rest, web, id, inbox, trusted, token)
51765181

@@ -11819,8 +11824,24 @@ def Conn.route.bot(k: Nat, s: Socket, +req: W.Request, rest: List<&2, U32>, +web
1181911824
case _ _:
1182011825
Conn.route.att(Conn.is_att(req), s, req, rest, web, id, inbox, trusted, token)
1182111826

11827+
def Conn.pair.reply(ok: Bool, s: Socket, +token: String, https: Bool) -> IO(Unit):
11828+
match ok:
11829+
case True{}:
11830+
Conn.finish(s, W.Http.response("204 No Content", "text/plain", Nil{}, AUTH.Auth.cookie(token, https)))
11831+
case False{}:
11832+
Conn.finish(s, W.Http.text("401 Unauthorized", "pairing refused"))
11833+
11834+
def Conn.route.auth(pair: Bool, s: Socket, +req: W.Request, rest: List<&2, U32>, +web: String, +id: U32, +inbox: Chan(Msg), +trusted: Bool, +token: String) -> IO(Unit):
11835+
match pair req:
11836+
case True{} W.Request{method, _, +hs}:
11837+
Conn.pair.reply(Bool.and(String.eq(method, "POST"), AUTH.Auth.pair(hs, token)), s, token, String.starts_with(W.Http.header_of(hs, "origin"), "https://"))
11838+
case False{} _:
11839+
Conn.route.bot(Conn.bot.kind(req), s, req, rest, web, id, inbox, trusted, token)
11840+
1182211841
def Conn.route(s: Socket, +req: W.Request, rest: List<&2, U32>, +web: String, +id: U32, +inbox: Chan(Msg), +trusted: Bool, +token: String) -> IO(Unit):
11823-
Conn.route.bot(Conn.bot.kind(req), s, req, rest, web, id, inbox, trusted, token)
11842+
match req:
11843+
case W.Request{+method, +path, +hs}:
11844+
Conn.route.auth(String.eq(W.Http.route(path), "/auth/pair"), s, W.Request{method, path, hs}, rest, web, id, inbox, trusted, token)
1182411845

1182511846
def Conn.head.k(m: Maybe<&2, W.Split>, s: Socket, buf: List<&2, U32>, +web: String, +id: U32, +inbox: Chan(Msg),
1182611847
+trusted: Bool, +token: String, k: Socket -> List<&2, U32> -> IO(Unit)) -> IO(Unit):
@@ -11849,12 +11870,17 @@ def Accept.whois(r: Socket & String, +owner: String, +id: U32, +web: String, +in
1184911870
w : P.Ran <- P.Proc.run("sh", PT.Port.timeout(["5", "tailscale", "whois", "--json", ip]), "/")
1185011871
Conn.head(64n, s, Nil{}, web, id, inbox, TN.Tailnet.trusts(owner, TN.Tailnet.login(Tailnet.out(w))), token)
1185111872

11873+
def Accept.local(r: Socket & String, +id: U32, +web: String, +inbox: Chan(Msg), +trusted: Bool, +token: String) -> IO(Unit):
11874+
(s, ip) = r
11875+
Conn.head(64n, s, Nil{}, web, id, inbox, Bool.and(trusted, CF.Cef.loopback(ip)), token)
11876+
1185211877
def Accept.trust(ask: Bool, s: Socket, +owner: String, +id: U32, +web: String, +inbox: Chan(Msg), +trusted: Bool, +token: String) -> IO(Unit):
1185311878
match ask:
1185411879
case True{}:
1185511880
IO.bind(Socket & String, Unit, H.Sock.peer(s), r => Accept.whois(r, owner, id, web, inbox, token))
1185611881
case False{}:
11857-
Conn.head(64n, s, Nil{}, web, id, inbox, trusted, token)
11882+
IO.bind(Socket & String, Unit, H.Sock.peer(s), r => Accept.local(r, id, web, inbox, trusted, token))
11883+
1185811884

1185911885
def Accept.got(r: Listener & Result<&1, &1, U32 & String, Socket>, +id: U32, +web: String, +inbox: Chan(Msg), +trusted: Bool, +token: String, +owner: String, k: Listener -> IO(Unit)) -> IO(Unit):
1186011886
(l, res) = r
@@ -11887,7 +11913,7 @@ def Tailnet.listened(r: Result<&1, &1, U32 & String, Listener>, +host: String, +
1188711913
do IO<Unit>:
1188811914
w : P.Ran <- P.Proc.run("tailscale", ["whois", "--json", ip], "/")
1188911915
+owner : String = TN.Tailnet.login(Tailnet.out(w))
11890-
IO.print("Backplane on your tailnet: http://" ++ ip ++ ":" ++ U32.show(port) ++ "/ (" ++ Bool.pick(String, String.is_empty(owner), "pairing token " ++ token, owner ++ "'s devices, or pairing token " ++ token) ++ ")")
11916+
IO.print("Backplane on your tailnet: http://" ++ ip ++ ":" ++ U32.show(port) ++ "/ (" ++ Bool.pick(String, String.is_empty(owner), "pair in Settings", owner ++ "'s devices; pair in Settings") ++ ")")
1189111917
ok : Result<&1, &1, Msg, Unit> <- Chan.send(Msg, inbox, LinkFound{TN.Tailnet.report("reachable", TN.Tailnet.link("http://" ++ ip ++ ":" ++ U32.show(port), token))})
1189211918
IO.spawn(Unit, Accept.loop(Fuel.forever(), l, 2147483648, web, inbox, False{}, token, owner))
1189311919
case Fail{_}:

‎src/web/auth.js‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Exchange pairing material once. The durable browser credential belongs in an
2+
// HttpOnly cookie; fragments and legacy localStorage never enter socket URLs.
3+
export async function pairBrowser({ location, history, storage, fetch }) {
4+
const fragment = new URLSearchParams(location.hash.slice(1));
5+
const supplied = fragment.get("token");
6+
const legacy = storage.getItem("backplane-token");
7+
const token = supplied ?? legacy;
8+
if (supplied !== null) history.replaceState(null, "", location.pathname + location.search);
9+
if (!token) return true;
10+
if (!/^[0-9a-f]{32}$/.test(token)) return false;
11+
const response = await fetch("/auth/pair", {
12+
method: "POST", credentials: "same-origin", cache: "no-store",
13+
headers: { Authorization: `Bearer ${token}` },
14+
});
15+
if (!response.ok) return false;
16+
storage.removeItem("backplane-token");
17+
return true;
18+
}

‎src/web/host.js‎

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
// is dumb).
77

88
import App from "./app.bend";
9+
import { pairBrowser } from "./auth.js";
10+
11+
// Consume the secret before the generic deeplink handler clears the fragment.
12+
const pairingReady = pairBrowser({ location, history, storage: localStorage, fetch: window.fetch.bind(window) }).catch(() => false);
913
import * as Solid from "./solid.js";
1014
import * as Plot2d from "./plot2d.js";
1115
import * as Wire from "./wire.js";
@@ -1119,20 +1123,8 @@ window.addEventListener("resize", () => {
11191123

11201124
let backoff = 250;
11211125

1122-
// A tailnet link carries the pairing token in its fragment; keep it for
1123-
// later visits and never send it anywhere but this server's socket.
1124-
const token = (() => {
1125-
const m = location.hash.match(/token=([0-9a-f]+)/);
1126-
if (m) {
1127-
localStorage.setItem("backplane-token", m[1]);
1128-
history.replaceState(null, "", location.pathname);
1129-
}
1130-
return localStorage.getItem("backplane-token") ?? "";
1131-
})();
1132-
1133-
// images in threads load by URL (<img src="/img?...">) and cannot carry the
1134-
// token in a query the way the socket does: a same-site cookie carries it
1135-
if (token) document.cookie = `bp_token=${token}; path=/; SameSite=Strict`;
1126+
// Authentication is carried by the same-origin HttpOnly pairing cookie.
1127+
// Native clients retain their existing token protocol.
11361128

11371129
// The event log this page holds, kept across reloads: a reload shows it at
11381130
// once and the socket then brings only what is new (since=, origin=). The
@@ -1194,7 +1186,6 @@ const restored = opened.then(() => new Promise((done) => {
11941186
function connect() {
11951187
const proto = location.protocol === "https:" ? "wss:" : "ws:";
11961188
const q = new URLSearchParams();
1197-
if (token) q.set("token", token);
11981189
q.set("since", App.seq(ui));
11991190
q.set("origin", App.origin(ui));
12001191
q.set("enc", "cbor"); // a hub before CBOR-only still needs asking
@@ -1280,7 +1271,7 @@ setInterval(() => {
12801271
}, 30000);
12811272

12821273
render();
1283-
restored.then(() => {
1274+
Promise.all([restored, pairingReady]).then(() => {
12841275
render();
12851276
connect();
12861277
});

0 commit comments

Comments
 (0)