mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-25 15:04:18 +02:00
A background task still needs to know who asked for the work, so FastMCP captures the caller's access token and every inbound HTTP header at submission time and writes that snapshot to the Docket backend. On a distributed backend the credentials sit in Redis as plaintext for the task's TTL, and a rediss:// URL protects only the wire. Set FASTMCP_ENCRYPTION_KEY and the snapshot becomes a Fernet token instead. Restore fails closed: a worker that cannot decrypt a snapshot fails the task rather than run the tool with no caller. Closes #4747 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| faq.mdx | ||
| settings.mdx | ||