Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
931fa9a
feat(jwt): fall back to DB team memberships when JWT has no team claims
mateo-berri Jun 25, 2026
384ef86
style(jwt): use PEP 585/604 annotations in DB team fallback to clear …
mateo-berri Jun 25, 2026
c1f6695
fix(jwt): preserve DB teams on no-claim sync, model-gate DB fallback,…
mateo-berri Jun 26, 2026
9911998
fix(jwt): load team membership on DB fallback; scope header check to …
mateo-berri Jun 26, 2026
4a2b0c0
fix(jwt): surface DB-fallback membership lookup failures at warning l…
mateo-berri Jun 26, 2026
e897495
fix(jwt-auth): tighten db-team fallback gating and passthrough enforc…
cursoragent Jun 26, 2026
08194af
fix(jwt): don't upsert a provisional x-litellm-team-id before members…
mateo-berri Jun 26, 2026
3522123
fix(jwt): pin RBAC-asserted team against db-team-fallback header over…
mateo-berri Jun 26, 2026
1f038f8
fix(jwt): scope dual-claim membership sync to fallback_to_db_teams
mateo-berri Jun 26, 2026
7ff66f5
fix(jwt): drop user team IDs from db-fallback model-access 403 detail
mateo-berri Jun 26, 2026
ed21199
fix(jwt): keep db-team fallback off for alias-only tokens
cursoragent Jun 26, 2026
73022d3
test(jwt): cover alias-only token skipping db-team fallback
mateo-berri Jun 26, 2026
bed1a58
fix(jwt): prefer alias resolution over team_id_default
cursoragent Jun 26, 2026
d55aa14
fix(jwt): enforce team_allowed_routes in db-team fallback resolution
mateo-berri Jun 27, 2026
5d7d41b
fix(jwt): enforce team_allowed_routes on header-team db fallback path
cursoragent Jun 27, 2026
6bfce1c
Merge branch 'litellm_internal_staging' into litellm_jwt_db_team_fall…
mateo-berri Jul 6, 2026
9584918
refactor(jwt): narrow db-team fallback except clauses to actual failu…
mateo-berri Jul 6, 2026
12e7547
fix(jwt): collapse provisional header team lookup failure into member…
mateo-berri Jul 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ ignore:
flag_management:
default_rules:
carryforward: true
# Dead flags no CI job uploads anymore: their carried-forward sessions were
# measured against old revisions, and the stale line maps mark comment lines
# of since-edited files as missed, sinking patch coverage on unrelated PRs.
individual_flags:
- name: proxy-mgmt-behavior
carryforward: false
- name: security
carryforward: false
- name: proxy-db-schema-migration
carryforward: false

component_management:
individual_components:
Expand Down
11 changes: 11 additions & 0 deletions litellm/proxy/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -4184,6 +4184,17 @@ class LiteLLM_JWTAuth(LiteLLMPydanticObjectBase):
"authorization."
),
)
fallback_to_db_teams: bool = Field(
default=False,
description=(
"When True, users whose JWT contains no team claims are authenticated "
"using their database team memberships instead of receiving HTTP 403. "
"Usage is attributed to the user's first resolvable DB team, or to the "
"team specified via the x-litellm-team-id request header (validated "
"against DB membership). Requires user_id_upsert=True so that user "
"records exist before the fallback runs."
),
)
issuers: Optional[List[JWTIssuerConfig]] = Field(
default=None,
description="Optional issuer-bound JWT validation rules. When a token's `iss` matches a configured issuer, validation uses that issuer's JWKS, audience, and claim mappings. Tokens with an unlisted `iss` fall back to the global JWT_AUDIENCE/JWT_ISSUER validation path — this is additive routing, not an allow-list.",
Expand Down
Loading
Loading