From 1f3410aa8814231a6b8a3c9e830225a68cf73f6f Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Thu, 1 Oct 2026 06:52:19 +0000 Subject: [PATCH] Bound the satellite label to 80 chars before it reaches the database --- paskia/fastapi/sync.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paskia/fastapi/sync.py b/paskia/fastapi/sync.py index 775f9ba..7fc6301 100644 --- a/paskia/fastapi/sync.py +++ b/paskia/fastapi/sync.py @@ -256,7 +256,10 @@ async def _handshake(ws: WebSocket) -> _Connection | None: await ws.close(code=1008) return None db.create_satellite_link( - link_id, rp_ids, server_part + client_part, label=hello.get("label") or "" + link_id, + rp_ids, + server_part + client_part, + label=(hello.get("label") or "")[:80], ) return _Connection( ws=ws,