Commit Graph
2 Commits
Author SHA1 Message Date
Hasan BasbunarandClaude Opus 5.5 73a17eff5b proxy: a body is JSON in UTF-8 or a 415, and an id of the engine's request is dropped once, in every form
Found by the verifier of v1.42.1 (2026-11-03), each with a test that fails on the
commit before it:
- the vLLM lanes read a body in UTF-16 or UTF-32 as well as UTF-8 (the SGLang
  lanes refuse it, orjson), and the guards, which look at a body's bytes first,
  saw none of its fields: any client could send those lanes what the guards
  refuse. And the rid strip as first written for this release read such a body
  and wrote it again in UTF-8 after the guards had passed it, on every lane. A
  body in another encoding than UTF-8 gets a 415, as RFC 8259 wants JSON between
  systems;
- vLLM takes its request id from a body's "request_id" and the X-Request-Id
  header: both are dropped for a listed key and the other box too;
- a body that may hold an id and cannot be read whole (too deep) was sent as it
  came: it gets a 400.
The id is dropped once, as soon as the body is read, before the pair and every
guard, so the body a box sends the other box of a pair is stripped as well.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 15:49:58 +01:00
Hasan BasbunarandClaude Opus 5.5 2b7a941cd5 proxy: a compressed request body is refused, not relayed past the guards
Every guard reads the body as it comes, and a body sent with a
Content-Encoding (gzip, deflate, br) reads as no JSON to each of them, so
each let it pass: an engine or a front that decodes it would take what no
guard had seen. A body in any coding but identity is now refused with a
415 and Accept-Encoding: identity, before it is read; no client of this
port compresses its body. The cockpit's outcome list knows the new line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 02:11:24 +02:00