Repository navigation
chore(proxy): tighten resource ownership checks #26951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
yuneng-berri
merged 32 commits into
BerriAI:litellm_internal_staging
from
stuxf:codex/skills-containers-tenant-guard
May 5, 2026
Merged
Changes from 28 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
ad9aa43
chore(proxy): scope skills and container resources
stuxf 95c8406
chore(proxy): stabilize openapi snapshot ids
stuxf d2a3220
fix(proxy): preserve container ownership compatibility
stuxf 0745b18
test(proxy): cover container endpoint forwarding
stuxf e4741fb
fix(proxy): add legacy skill ownership opt-out
stuxf 9376b30
fix(proxy): reset filtered container pagination
stuxf 6aac455
fix(proxy): forward decoded container ids
stuxf f3cff93
fix(proxy): harden resource ownership fallbacks
stuxf 7b1e3f2
test(proxy): cover container endpoint post processing
stuxf 20eb9c9
fix(proxy): avoid mutating container responses
stuxf 3a566c3
fix(proxy): stabilize ownership fallback and openapi ids
stuxf a02aacf
fix(proxy): type openapi snapshot operation ids
stuxf 2ecc79b
test(proxy): cover skill ownership propagation
stuxf f18ee03
fix(proxy): isolate ownership persistence paths
stuxf e9fb89b
fix(proxy): avoid misleading multi-method operation ids
stuxf 8ced8d2
Merge remote-tracking branch 'origin/litellm_internal_staging' into HEAD
stuxf d812a53
fix managed container routing after staging merge
stuxf 6c37e9d
fix(proxy): handle ownership-recording failures after upstream create
stuxf 22ced8d
Merge upstream/litellm_internal_staging into HEAD
stuxf 6194028
perf(proxy): cache container/skill ownership reads on the hot path
stuxf c01f209
fix(proxy): forward decoded container ids after ownership checks
stuxf 4fa5778
fix(container): keep ownership-filter exceptions out of the LLM-error…
stuxf ec9b84d
chore(container,skills): LRU eviction for owner caches; widen file_pu…
stuxf de682c8
chore(container,skills): drop legacy-access opt-out env vars
stuxf 758b488
fix(ownership): reject identity-less callers instead of sharing a sen…
stuxf 777862a
Merge remote-tracking branch 'upstream/litellm_internal_staging' into…
stuxf b5a14f2
Merge remote-tracking branch 'upstream/litellm_internal_staging' into…
stuxf 12fe945
fix: keep skills handler FastAPI-free; fold gcs deny list into the bo…
stuxf 6ce84ef
chore: simplify ownership tracking — drop thin stores, in-memory fall…
stuxf 2adfa96
fix(container): cache list-allow-set, track admin-created containers
stuxf 4699b3d
chore(container): use delete_cache, json-encode scope key, clean test
stuxf 3dcb6bd
Merge remote-tracking branch 'upstream/litellm_internal_staging' into…
stuxf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| from typing import Any, Dict, List, Optional | ||
|
|
||
|
|
||
| class LiteLLMSkillsStore: | ||
| def __init__(self, prisma_client: Any): | ||
| self.prisma_client = prisma_client | ||
|
|
||
| @property | ||
| def _table(self) -> Any: | ||
| return self.prisma_client.db.litellm_skillstable | ||
|
|
||
| async def create_skill(self, data: Dict[str, Any]) -> Any: | ||
| return await self._table.create(data=data) | ||
|
|
||
| async def list_skills(self, find_many_kwargs: Dict[str, Any]) -> List[Any]: | ||
| return await self._table.find_many(**find_many_kwargs) | ||
|
|
||
| async def find_skill(self, skill_id: str) -> Optional[Any]: | ||
| return await self._table.find_unique(where={"skill_id": skill_id}) | ||
|
|
||
| async def delete_skill(self, skill_id: str) -> None: | ||
| await self._table.delete(where={"skill_id": skill_id}) |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.