From 11be6acd4d0acaca97245a5bebd1fd688fa0c679 Mon Sep 17 00:00:00 2001 From: yetone Date: Fri, 13 Nov 2026 16:00:20 +0800 Subject: [PATCH] LESSONS: the advisor route skipped a key's models (db9a5ec7c, 0b38eb21c) A second day for "a restriction covers every route": the served advisor asked a caller-named model as magpieChose, so a key held to some models reached others; two tags shipped it before 0b38eb21c fixed it and the native advisor's older gap. Docs only; nothing run. --- LESSONS.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/LESSONS.md b/LESSONS.md index 66a4adf85..db2bd065c 100644 --- a/LESSONS.md +++ b/LESSONS.md @@ -172,7 +172,16 @@ content before you rest an account.** moved managedKey onto access.Named, with a test that fails on the old check. c83c0d5f (#1112) kept a pinned MAGPIE_ADDR host while sharing, and checked that requests behind Tailscale Serve still count as remote. -- Seen 1× (2026-10-05). +- 11-13: db9a5ec7c served Claude Code's advisor tool in magpie and asked + the advisor model as magpieChose, which drops the key's models list. The + caller names that model in the request, so a key held to some models + could reach any other model through it. v0.1.4023 and v0.1.4024 shipped + it; 0b38eb21c fixed it 23 minutes later, and found that the native + advisor had passed any same-provider Claude model upstream for a held key + since before. When a request can name a second model (advisor, a + sub-agent, a decision model), that model goes through keyAllows like the + first. 0b38eb21c ran `-run` gateway tests only, not the full suite. +- Seen 2× (2026-10-05, 2026-11-13). **Scope a privacy or security exemption by where the value sits in the protocol, never by a key's name.**