mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
|
Some checks failed
Unit Tests: Proxy DB Operations / assert-shard-coverage (push) Has been cancelled
Unit Tests: Security / security (push) Has been cancelled
Unit Tests: Proxy DB Operations / auth-checks (push) Has been cancelled
Unit Tests: Proxy DB Operations / budgets (push) Has been cancelled
Unit Tests: Proxy DB Operations / custom-logging (push) Has been cancelled
Unit Tests: Proxy DB Operations / db-and-spend (push) Has been cancelled
Unit Tests: Proxy DB Operations / endpoints-and-responses (push) Has been cancelled
Unit Tests: Proxy DB Operations / guardrails-hooks (push) Has been cancelled
Unit Tests: Proxy DB Operations / jwt-and-keys (push) Has been cancelled
Unit Tests: Proxy DB Operations / key-generation (push) Has been cancelled
Unit Tests: Proxy DB Operations / logging-misc (push) Has been cancelled
Unit Tests: Proxy DB Operations / proxy-runtime (push) Has been cancelled
Unit Tests: Proxy DB Operations / proxy-server-core (push) Has been cancelled
Unit Tests: Proxy DB Operations / schema-migration (push) Has been cancelled
Unit Tests: Proxy DB Operations / proxy-utils (push) Has been cancelled
Three P1 defects from the auth_v2 review, plus the policy-admin flag guard: - JWKS cache was dead: JWKSProvider was rebuilt per request, so its TTL cache never survived and every JWT auth refetched the JWKS over the network. Providers are now cached per jwks_uri at module level. - Inference with no model bypassed casbin: a body omitting "model" skipped the call check entirely, so a subject with no grants could reach inference. Now a model-less inference request is denied up front (before any enrichment/budget). - Policy-admin endpoints used a v1 _require_admin role check that rejected JWT/OAuth2 admins casbin had already authorized. Removed it - the routes are in the casbin route map (policy read/write/delete), so user_api_key_auth enforces them - and added a per-request flag guard so the unconditionally-registered router 404s when auth_v2 is off. Regression tests for each. mypy clean on 23 files, 143 tests green. |
||
|---|---|---|
| .. | ||
| authn | ||
| authz | ||
| stages | ||
| test_audit.py | ||
| test_budget_enforcement.py | ||
| test_context.py | ||
| test_integration_flow.py | ||
| test_management_endpoints.py | ||
| test_metrics.py | ||
| test_principal.py | ||