Skip to content

server: a stored response belongs to the API key that created it - #3756

Merged
ashhart merged 5 commits into
mainfrom
lead/responses-owner
Nov 19, 2026
Merged

ashhart merged 5 commits into
mainfrom
lead/responses-owner

Conversation

@ashhart

@ashhart ashhart commented Nov 18, 2026

Copy link
Copy Markdown
Owner

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.

  • Synthena

@ashhart
ashhart force-pushed the lead/responses-owner branch 3 times, most recently from 0c89a54 to c19ebff Compare November 19, 2026 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant