Skip to content

Conversation

krrishdholakia
Copy link
Contributor

Title

Responses API - prevent User A from retrieving User B's response, if response.id is leaked

Relevant issues

Closes LIT-1307

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🆕 New Feature

Changes

  • return encrypted response id, mapping response id to user id
  • make encryption/decryption url safe
  • decrypt response id - check if user making request is allowed to retrieve response id
  • if not - raise error (can be disabled via general settings flag)
  • if yes - allow request to go through

…from retrieving user B's response

additional security for retrievals on shared accounts

Closes LIT-1307
@vercel
Copy link

vercel bot commented Oct 21, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
litellm Ready Ready Preview Comment Oct 21, 2025 3:45am

💡 Enable Vercel Agent with $100 free credit for automated AI reviews

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