Repository navigation
server: a stored response belongs to the API key that created it - #3756
Merged
Merged
Conversation
ashhart
force-pushed
the
lead/responses-owner
branch
3 times, most recently
from
November 19, 2026 02:49
0c89a54 to
c19ebff
Compare
ashhart
force-pushed
the
lead/responses-owner
branch
from
November 19, 2026 15:20
c19ebff to
b8d0aab
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stored Responses had no owner: on a server with several API keys, any key that knew a response ID could read it, continue from it or cancel it. Each stored response and live background job now records the creating key's digest (never the key itself). Reads, continuations and cancels from another key get the same not-found answer as an unknown ID, so a foreign key cannot even confirm the ID exists.
A server with no key or a single key behaves exactly as before.
Host tests: key A stores; key B gets not-found on read, continue and cancel; key A still works; keyless and single-key unchanged (38 of 38 pass, and three controls fail without the change). It combines cleanly with #3222's per-key prompt cache salts, which close the related prompt-cache side.