Repository navigation
v0.8.0
E2EE v2.1 for sealed (TEE) models
This release can seal requests with E2EE v2.1. It is used on its own accord as soon as the TEE behind a tee/ model lists a v2.1 key in its attested key list, and from then on never anything weaker. X-BitLLM-TEE says which version an answer got: e2ee=v2.1 or e2ee=v2.
Today the two sponsored models still answer with e2ee=v2, because the production TEE takes v2 only. Nothing changes for them until that TEE is upgraded. Nodes with auto-update on move to this release by themselves.
With e2ee=v2.1:
- Tool call arguments are sealed, in the request and in the answer, beside your messages, the system prompt, tool results, the model's reasoning and its answer.
- A relaying server cannot change the request. A digest of the whole body is sealed to the TEE with it: no message added or dropped, no
max_tokensraised, no tool taken out. - A relaying server cannot replace an answer or read one with a key of its own. Every answer carries a keyed checksum that only the TEE that opened your request can make.
What v2.1 still does not do
- A streamed answer can lose a piece. Its events are not numbered. Each event that reaches you is the TEE's own and unchanged, but a relaying server can drop one from the middle, repeat one or reorder them. For a streamed tool call that can change its arguments.
X-BitLLM-TEEsaysstream=unsequencedon every streamed answer. An answer that is not streamed has no such gap: if an agent's tool calls must arrive exactly as the model wrote them, ask with"stream": false. - Tool definitions and tool names stay readable, with a
response_formatschema,stopsequences and everything else that is not message text. They cannot be changed. The header names them afterreadable=. - Errors are not authenticated. A relaying server can make up a refusal.
For operators
- A node that relays for a TEE (
--e2ee-only) must run this release before its TEE lists a v2.1 key. An older node refuses a v2.1 request, and the client then reports that the server must update. It still serves v2 clients as before. - A v2.1 request cannot be changed on the way, so a relay checks it instead of rewriting it. Clients on this release send requests that pass. A relay's
--max-tokensis told to the client in the refusal, and the client asks again within it.
Full Changelog: v0.7.1...v0.8.0