litellm/tests/e2e/management
yujonglee c25c669167
feat(auth): decide key and JWT authentication in a Rust core (#51374)
gateway-auth-core gains plan/ and credential/, which plan and decide key and
JWT authentication on top of its route rules. The Python proxy now runs that
core through python-bridge with a PythonAuthHost, which replaces
handle_jwt.py and the key and JWT paths of user_api_key_auth.py.

The core defines Token, MasterKey and KeyHash, and config gains the JWT auth
settings. Route groups named in allowed_routes match as starlette's
compile_path compiles them, like _allowed_routes_check, and a team's
allowed and denied pass-through routes read as RouteLists. allow_user_auth,
allow_requests_on_db_unavailable and enforce_rbac read through python-compat's
IsTrue, StrBool and Truthy adapters, and StrBool reads text with
flags::str_to_bool.

Fixes that landed on main in the code this moves carry over: every user read
the core makes from a JWT hands the raw email_verified claim to the host,
which reads it with read_email_verified, the impersonation header applies
after a master key, cached admin, virtual key or mapped JWT key is accepted,
and the team member budget step uses the native budget decision.

A JWT email claim that is not a string reads as no email, the same as a
missing claim, instead of being stored as the number's text.

The native extension size cap rises from 55 MB to 65 MB, since the auth core
brings the Linux build to 56.85 MB.
2026-11-17 14:07:47 +09:00
..
conftest.py test: bind management E2E callers and isolate JWT actors 2026-09-12 13:29:04 -07:00
jwt_actors.py test(e2e): tag management tests with Subject metadata and record management client steps (#44962) 2026-10-07 10:32:09 -07:00
management_client.py test(e2e): tag management tests with Subject metadata and record management client steps (#44962) 2026-10-07 10:32:09 -07:00
test_budget_customer_user_org_e2e.py fix(e2e): restore main qualification across providers and UI (#49763) 2026-11-03 20:38:47 +00:00
test_config_misc_endpoints_e2e.py chore: move LiteLLM's configs and e2e tests off gpt-4o and gpt-4.1 before their 2027-01-14 shutdown (#51800) 2026-11-14 10:50:59 -08:00
test_jwt_management_e2e.py test(e2e): tag management tests with Subject metadata and record management client steps (#44962) 2026-10-07 10:32:09 -07:00
test_key_lifecycle_e2e.py chore: move LiteLLM's configs and e2e tests off gpt-4o and gpt-4.1 before their 2027-01-14 shutdown (#51800) 2026-11-14 10:50:59 -08:00
test_key_management_e2e.py test(e2e): tag management tests with Subject metadata and record management client steps (#44962) 2026-10-07 10:32:09 -07:00
test_management_e2e.py chore: move LiteLLM's configs and e2e tests off gpt-4o and gpt-4.1 before their 2027-01-14 shutdown (#51800) 2026-11-14 10:50:59 -08:00
test_mcp_lifecycle_e2e.py test(e2e): tag management tests with Subject metadata and record management client steps (#44962) 2026-10-07 10:32:09 -07:00
test_model_tag_accessgroup_e2e.py test(e2e): tag management tests with Subject metadata and record management client steps (#44962) 2026-10-07 10:32:09 -07:00
test_model_test_connection_e2e.py test(e2e): tag management tests with Subject metadata and record management client steps (#44962) 2026-10-07 10:32:09 -07:00
test_team_management_e2e.py feat(auth): decide key and JWT authentication in a Rust core (#51374) 2026-11-17 14:07:47 +09:00