Portal link: send the instance credential as Authorization: Bearer

Not ?token= in the tunnel URL, which access logs keep. The hub has to be
upgraded first; websockets>=14 for additional_headers on the asyncio client.
This commit is contained in:
2026-10-07 09:41:44 +02:00
parent 1424e1e8a8
commit e9c3d0944d
5 changed files with 45 additions and 5 deletions
+3 -2
View File
@@ -74,8 +74,9 @@ dependencies = [
"textual>=1.0",
# That dashboard subscribes to the engine's event bus over the same socket
# the browser uses. It arrives under `fastapi[standard]` either way, and is
# named here because this code imports it.
"websockets>=13",
# named here because this code imports it. 14 is where the asyncio client
# the portal link dials with takes `additional_headers`.
"websockets>=14",
# The encrypted-payload half of web push (RFC 8291). It brings only
# cryptography, which is already here. `pywebpush` would do the signing and
# the request too, at the cost of `requests` *and* `aiohttp` — two HTTP