Buckets:

download
raw
2.97 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No in-repo client sends a verifiable JWT to the proxy's user_api_key_auth (litellm/proxy/auth/user_api_key_auth.py:1085); callers are external OIDC clients. The repo has no admin UI source, and the UI login JWTs minted in proxy_server.py:6894 carry an API key and are never verified server-side."
},
{
"role": "Enforcer",
"status": "present",
"symbol": "user_api_key_auth",
"file": "litellm/proxy/auth/user_api_key_auth.py",
"lines": "1085",
"notes": "This is the FastAPI dependency installed on protected routes, for example Depends(user_api_key_auth) on chat_completion at litellm/proxy/proxy_server.py:3499/3507. It delegates to _user_api_key_auth_builder (user_api_key_auth.py:289), which takes the JWT branch when general_settings.enable_jwt_auth is set and is_jwt holds (lines 413-422), calls JWTAuthManager.auth_builder (line 423) and rejects on failure. Caveat: the JWT branch is config-gated and premium-only; the default is opaque API-key lookup."
},
{
"role": "Verifier",
"status": "present",
"symbol": "auth_jwt",
"file": "litellm/proxy/auth/handle_jwt.py",
"lines": "416",
"notes": "Reached from the Enforcer via JWTAuthManager.auth_builder (handle_jwt.py:901), which calls jwt_handler.auth_jwt at handle_jwt.py:913. JWTHandler.auth_jwt reads the kid from the header, gets the public key, verifies the signature, expiry and audience with RS/PS algorithms, and returns the claims or raises. auth_builder then extracts the principal (user, team, org, RBAC role)."
},
{
"role": "Key manager",
"status": "present",
"symbol": "get_public_key",
"file": "litellm/proxy/auth/handle_jwt.py",
"lines": "343",
"notes": "Called by auth_jwt at handle_jwt.py:433. JWTHandler.get_public_key fetches the JWKS from the env-configured JWT_PUBLIC_KEY_URL(s), caches it in user_api_key_cache with public_key_ttl, and picks the key by kid via parse_keys (line 381)."
},
{
"role": "Cryptographer",
"status": "external",
"symbol": "decode",
"file": "litellm/proxy/auth/handle_jwt.py",
"lines": "453",
"notes": "auth_jwt calls PyJWT jwt.decode (imported at handle_jwt.py:427) at line 453, with the RSA JWK key built by RSAAlgorithm.from_jwk, to verify the signature. The x509-certificate branch makes the same call at line 481."
},
{
"role": "System",
"status": "present",
"symbol": "chat_completion",
"file": "litellm/proxy/proxy_server.py",
"lines": "3503",
"notes": "This is the protected business handler (the OpenAI-compatible chat completions proxy). It runs only after the Enforcer dependency user_api_key_auth returns the UserAPIKeyAuth principal (Depends at proxy_server.py:3499/3507)."
}
]
}

Xet Storage Details

Size:
2.97 kB
·
Xet hash:
dad36b8a7a8c40c16eec845a33d023217cea931eacd31608ebf16b99056dadc5

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.