mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
* fix(proxy): accept audience and public_key_url in litellm_jwtauth general_settings.litellm_jwtauth rejected public_key_url and audience at startup with "Invalid arguments provided", so the flat config shape published for Entra ID and Okta gateway SSO could not boot. Both were read only from JWT_PUBLIC_KEY_URL and JWT_AUDIENCE. They are now fields on LiteLLM_JWTAuth and the Rust JWT settings. They seed the global validation path for tokens whose iss matches no issuers entry, take precedence over the env vars, and each one falls back to its env var on its own. An empty value is refused at startup instead of silently rejecting every token. The agent identity provider list reads the same audience, so it agrees with what the gateway enforces. * fix(proxy): refuse a null or URL-less global JWKS URL and audience in litellm_jwtauth An os.environ/ reference to an unset variable resolves to null, which let a config that names an audience boot with no audience check. A public_key_url made only of commas and whitespace also passed startup and left global JWT verification with no endpoint. * test(proxy): sign the config JWKS rejection tokens inside the test The parametrized tokens were signed at collection with a ten minute expiry, so a late run would fail on expiry instead of on the audience or signing key. |
||
|---|---|---|
| .. | ||
| _support | ||
| audio_tests | ||
| base_sdk_tests | ||
| basic_proxy_startup_tests | ||
| benchmarks | ||
| code_coverage_tests | ||
| documentation_tests | ||
| e2e | ||
| e2e_harness | ||
| fixtures | ||
| harness_e2e | ||
| integration | ||
| rust-python-harness | ||
| test_litellm_rust | ||
| typing | ||
| unit | ||
| windows_tests | ||
| __init__.py | ||
| _fake_openai_endpoint_server.py | ||
| _flush_vcr_cache.py | ||
| _live_test_helpers.py | ||
| _master_key.py | ||
| _module_state.py | ||
| _openai_record_replay_proxy.py | ||
| _process_helpers.py | ||
| _vcr_conftest_common.py | ||
| _vcr_redis_persister.py | ||
| _wait_helpers.py | ||
| _ws_vcr.py | ||
| AGENTS.md | ||
| capturing_transport.py | ||
| eval_swe_bench.py | ||
| fake_openai_endpoint.py | ||
| gettysburg.wav | ||
| large_text.py | ||
| openai_batch_completions.jsonl | ||
| pyrightconfig.json | ||
| README.MD | ||
| test_logging.conf | ||
| test_rust_python_harness.py | ||
| VCR_TESTING.md | ||
| white_100x100.png | ||
In total litellm runs 1000+ tests
[02/20/2025] Update:
To make it easier to contribute and map what behavior is tested,
we've started mapping the litellm directory in tests/unit
This folder can only run mock tests.