mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-05 12:24:28 +01:00
v1.42.1: the notes say which lanes read UTF-16, and the rule's docstring says listed keys
The SGLang lanes refuse a body in UTF-16 or UTF-32 (orjson), the vLLM lanes read it (FastAPI's json, checked on the reference box's Flash FP4-Local). The request id is never a listed client's to name, which outside the routes the proxy names it on leaves it to the engine. The rule's docstring and its variable said the other box of a pair alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4b97280bee
commit
2af376af9a
3 files changed
+22
-20
No files matched your search
+11
-11
@@ -7,18 +7,18 @@ its client leaves. A client of a listed key (`keys.json`, the identity wall) cou
|
||||
a body or in the `x-override-rid` header, leave, and so end every generation of the box. v1.42.0 kept the other box of
|
||||
a pair from doing it, but only for a top-level `"rid"` whose bytes showed it, and SGLang takes the id in three more
|
||||
forms: the same key written with escapes (`"r\u0069d"`), `request_id` on `/v1/responses`, and the Vertex route's
|
||||
`parameters`, which it spreads into the request. And any client could send its body as JSON in UTF-16 or UTF-32, which
|
||||
Python's json and the engines read as well as UTF-8, but in which the proxy's guards, which look at a body's bytes
|
||||
first, found none of the fields they look for: a `top_logprobs` that takes SGLang down (sglang#40076), a negative
|
||||
token id, an id, all went through. Found by security reviews on 2026-11-03.
|
||||
`parameters`, which it spreads into the request. And the vLLM lanes read a body in UTF-16 or UTF-32 as well as UTF-8
|
||||
(the SGLang lanes refuse it), in which the proxy's guards, which look at a body's bytes first, found none of the
|
||||
fields they look for: any client could send those lanes what the guards refuse, and an id too. Found by security
|
||||
reviews on 2026-11-03.
|
||||
|
||||
**What changes.** A body that is not UTF-8 gets a 415 (RFC 8259 wants JSON in UTF-8 between systems), and is never
|
||||
relayed. The proxy (v6.51) no longer lets a client of a listed key name the engine's request id, as for the other box
|
||||
of a pair: the headers are dropped (`x-override-rid`, and vLLM's `X-Request-Id`), the body is read whenever it may
|
||||
hold an id and every form is dropped, vLLM's `request_id` too, and a body that may hold one and cannot be read whole
|
||||
gets a 400. The proxy or the engine names the request. A client with the engine's key, on a box without the identity
|
||||
wall, still names its requests as it did. The tests fail on v1.42.0: for a listed key in every form, for the other box
|
||||
in the two new ones and in UTF-16, and for any client in UTF-16 and UTF-32.
|
||||
**What changes.** A body that is not UTF-8 gets a 415 on every lane (RFC 8259 wants JSON in UTF-8 between systems),
|
||||
and is never relayed. The proxy (v6.51) no longer lets a client of a listed key name the engine's request id, as for
|
||||
the other box of a pair: the headers are dropped (`x-override-rid`, and vLLM's `X-Request-Id`), the body is read
|
||||
whenever it may hold an id and every form is dropped, vLLM's `request_id` too, and a body that may hold one and cannot
|
||||
be read whole gets a 400. The proxy or the engine names the request. A client with the engine's key, on a box without
|
||||
the identity wall, still names its requests as it did. The tests fail on v1.42.0: for a listed key in every form, for
|
||||
the other box in the two new ones and in UTF-16, and for any client in UTF-16 and UTF-32.
|
||||
|
||||
**Also.** The cockpit reads the deployed proxy's version from its first line: it read it from a history line, which
|
||||
sits past the first 4,000 bytes it read since v1.40.7, so Lanes and Settings said "unknown", and the warning that the
|
||||
|
||||
+3
-2
@@ -171,7 +171,8 @@ engine reads one from a body: "rid" (written with escapes too), "request_id", th
|
||||
Vertex route's "parameters". A body that may hold one and cannot be read whole gets a
|
||||
400. SGLang aborts every request whose id starts with one it aborts, and ids "0" to
|
||||
"f" could end every generation of the box. Every request body is JSON in UTF-8, or a
|
||||
415: in UTF-16 or UTF-32, which the engines read too, the guards saw none of its fields.
|
||||
415: in UTF-16 or UTF-32, which the vLLM lanes read too (the SGLang lanes refuse it), the
|
||||
guards saw none of its fields.
|
||||
This box's cockpit reads the other's through `/proxy/pair/<box>/state`, a route of
|
||||
this machine only, as `/proxy/stop`. A request that gets past
|
||||
it is a hop from the box of that certificate: served there or refused, never sent
|
||||
@@ -229,7 +230,7 @@ discussion, not a disclosure.
|
||||
what it relays with the engine's own key: a client key generates, counts and
|
||||
reads, the label on
|
||||
every journal line of its requests, and since v1.42.1 the engine's request id
|
||||
is the proxy's to give, never the client's), and naming is all it does: there are no
|
||||
is never the client's to name), and naming is all it does: there are no
|
||||
per-client quotas or ceilings, and the engine behind it still has one key.
|
||||
- **`AGENT_AUTO=1` is deliberate escalation.** It sets opencode to allow
|
||||
every tool call in the Agent view, behind the cockpit login, on this
|
||||
|
||||
+8
-7
@@ -57,9 +57,9 @@ Ten roles, nothing else:
|
||||
serves, and any other name, stays on this box, as on a box alone (decision 986). GET /v1/models
|
||||
lists every box's models (see "Two boxes behind one endpoint" below).
|
||||
|
||||
v6.51: a request body is JSON in UTF-8, or a 415: in UTF-16 or UTF-32, which Python's json and the
|
||||
engines read too, the guards here found none of the fields they look for (a top_logprobs that takes
|
||||
SGLang down went through). A client of a listed key never names the engine's request id, as the
|
||||
v6.51: a request body is JSON in UTF-8, or a 415: in UTF-16 or UTF-32, which the vLLM lanes read too
|
||||
(FastAPI's json, where the SGLang lanes' orjson refuses it), the guards here found none of the fields
|
||||
they look for. A client of a listed key never names the engine's request id, as the
|
||||
other box of a pair since v6.50, and neither names it in a header (x-override-rid, vLLM's
|
||||
X-Request-Id) or in any form an engine reads one from a body: "rid" (written with escapes too, a
|
||||
batch's list too), "request_id", the Vertex route's "parameters". A body that may hold one and
|
||||
@@ -4894,10 +4894,10 @@ class H(BaseHTTPRequestHandler):
|
||||
# A request the other box of a pair sent on, or one of a listed key, keeps no rid of its own either, on any
|
||||
# route: SGLang aborts by prefix, and their rids "0" to "f" ended every generation here (found in reviews,
|
||||
# 2026-11-03); nor vLLM's X-Request-Id
|
||||
hop = self._rid_not_its_own()
|
||||
not_its_own = self._rid_not_its_own()
|
||||
h = {k: v for k, v in self.headers.items() if k.lower() not in HOP and k.lower() != PAIR_HOP.lower()
|
||||
and not (k.lower().startswith("x-override-") and (k.lower() != "x-override-rid" or hop))
|
||||
and not (hop and k.lower() == "x-request-id")}
|
||||
and not (k.lower().startswith("x-override-") and (k.lower() != "x-override-rid" or not_its_own))
|
||||
and not (not_its_own and k.lower() == "x-request-id")}
|
||||
auth = _upstream_auth(self)
|
||||
if auth:
|
||||
h["Authorization"] = auth
|
||||
@@ -7110,7 +7110,8 @@ class H(BaseHTTPRequestHandler):
|
||||
"""True for a request that never names the engine's request id: one the other box of a pair sent on, and one
|
||||
of a listed client key, which reaches no operator route either. SGLang aborts every request whose rid starts
|
||||
with one it aborts (when its client leaves, too): either could end every generation of this box by naming
|
||||
rids "0" to "f" (found in review, 2026-11-03). The holder of the engine's key, its operator, still may."""
|
||||
rids "0" to "f" (found in review, 2026-11-03). Without the identity wall, a client with the engine's key still
|
||||
names its requests; with it, every client is a listed key."""
|
||||
if self._pair_hop():
|
||||
return True
|
||||
if CLIENT_KEYS:
|
||||
|
||||
Reference in new issue
Block a user