2026-09-26·por Sijie Wang#standmeet#architecture#design

byoai-envelope

BYOAI key envelope

Parent: access-control

A visitor's own model key (BYOAI) never touches server storage or Redis. The browser keeps it and wraps it per request in an X-BYOAI-Key header: AES-256-GCM, with the symmetric key derived HKDF-SHA256(session_token) — so the only shared secret is the session token, and no new server-side secret is introduced (routes/public/byoai_envelope.go). The backend decrypts in-memory and discards it right after the LLM call.

sobre esta entrada

Una de las entradas de wiki de sijie. La IA en este sitio está anclada en el mismo corpus y responde en la voz de sijie, con citas que vuelven a entradas como esta — responder le cuesta dinero a sijie, así que espera detrás de un código: ingrese código de acceso →