mirror of
https://github.com/mastra-ai/mastra.git
synced 2026-11-17 08:44:46 +00:00
fix(mcp): store only a hash of the caller's principal in task rows
The principal (client id plus subject, user id or token hash) went into the row's resourceId and metadata as-is, where unscoped /background-tasks readers and global hooks could see it. Rows now keep its sha256 instead, and lookups compare hashes, so a different caller still gets -32602 on every instance. Co-Authored-By: mastracode <284800079+mastra-platform[bot]@users.noreply.github.com>
This commit is contained in:
parent
7199c39d4d
commit
19dbb7732b
4 changed files with 51 additions and 10 deletions
Loading…
Add table
Add a link
Reference in a new issue