mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-30 01:08:33 +00:00
* feat(proxy): synchronize LDAP groups to teams * chore(ui): regenerate LDAP sync API types * fix(proxy): stop LDAP reads when sync jobs time out * refactor(proxy): validate LDAP startup boundaries * refactor(proxy): use a read-only team defaults type * refactor(proxy): preserve team defaults validation behavior * fix(proxy): skip only the LDAP group with a deleted member entry Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(proxy): harden LDAP snapshots, TLS, and team defaults * fix(proxy): hide LDAP credentials in validation errors * fix(ldap): accept only user members, guard emptied teams, stop between teams on timeout - Member entries must carry a person object class; nested groups of any class skip their group - A group resolving to no LiteLLM users no longer empties a populated team unless allow_empty_groups is set - The run timeout cancels only the directory read; writes stop between teams instead of mid-transaction - Revert the post-commit cache-eviction shield to the plain await used by other key-deletion paths * fix(ldap): require interval_minutes >= 5 so the job lock outlasts a run The lease is interval - 1s and a run can exceed its time budget by one roster transaction (60s timeout), so sub-2-minute intervals let a second replica start while the first is still writing. * perf(ldap): resolve each member once per directory snapshot Users in many groups were looked up once per group; the load test made 2000 lookups for 494 distinct users at 100 groups. Results, including missing-entry errors, are reused within a snapshot only. * refactor(ldap): validate sync settings once and type the job initializer - ldap_sync_settings() validates general_settings.ldap_sync once; both startup sites use it instead of peeking at the raw dict - initialize_ldap_sync takes the validated settings, a typed scheduler Protocol and a non-optional PrismaClient - Drop the runtime scheduler isinstance check and the unreachable database check * fix(ldap): release the job lock when a run finishes; cover configurable match fields - Release cronjob_lock:ldap_team_sync in finally, matching key rotation and budget reset, so a restart right after a run (dry_run -> apply) syncs immediately - Tests: lock held during a run blocks other workers, released after success and failure - Tests: entryUUID/description group attributes, uid user_match_attribute, uniqueMember/roleOccupant, and an end-to-end uid -> sso_user_id sync * fix(ldap): let the job lock expire so one replica syncs per interval Matches the spend capture rate check: the lease (interval - 1s) is not released, so replicas firing later in the interval skip. A restart within the interval applies config changes at the next interval; documented. * fix(ldap): no team write after the run budget; skip validating disabled blocks - Check the run budget after user and team lookups, before any team write, so a slow read never starts a write past the budget (spend log cleanup precedent) - Read only enabled before validating ldap_sync, so a disabled block cannot fail startup - Drop a comment that restated the code * fix(ldap): freeze the enabled-flag settings model * refactor(ldap): build the member lookup map once instead of mutating it Fixes the type discipline gate (LIT001 mutable dict parameter, LIT011 parameter mutation). Lookups and their order are unchanged. * test(ldap): drive time-budget tests with a controlled loop clock and mark test locals Final Replace the real asyncio.sleep calls in the two time-budget tests with a loop clock the stubs skip forward, so worker speed cannot change the outcome (tests/unit/AGENTS.md). Annotate single-assignment locals in the new LDAP tests, and the PR-added ones in test_team_roster_sync.py, with Final (LIT010). * docs(ldap): drop root docs/ldap_sync.md; LDAP sync docs live in litellm-docs main removed the repo-root docs/ directory (#50992), and re-adding it pushes the root past the root-entry-limit check. * test(proxy): fix LDAP sync lint and CI fixtures * test(proxy): exercise LDAP sync at service boundaries --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
185 lines
7.3 KiB
INI
185 lines
7.3 KiB
INI
# Authorized and unauthorized licenses in LOWER CASE
|
|
[Licenses]
|
|
authorized_licenses:
|
|
######################
|
|
# Permissive Licenses
|
|
######################
|
|
|
|
# Apache-2.0
|
|
apache
|
|
apache 2.0
|
|
apache-2.0
|
|
apache software license
|
|
apache software
|
|
apache license v2.0
|
|
apache license 2.0
|
|
apache license, version 2.0
|
|
|
|
# BSD
|
|
bsd
|
|
new bsd
|
|
bsd license
|
|
new bsd license
|
|
simplified bsd
|
|
3-clause bsd
|
|
freebsd
|
|
bsd 3-clause
|
|
|
|
# MIT
|
|
mit
|
|
mit license
|
|
|
|
# ISC
|
|
isc license
|
|
isc license (iscl)
|
|
|
|
# The Unlicense
|
|
the unlicense (unlicense)
|
|
|
|
# HPND
|
|
historical permission notice and disclaimer (hpnd)
|
|
|
|
#########################
|
|
# Weak Copy Left Licenses
|
|
#########################
|
|
|
|
# MPL-2.0
|
|
mozilla public license 2.0 (mpl 2.0)
|
|
|
|
# LGPL
|
|
gnu lesser general public license v2 or later (lgplv2+)
|
|
gnu lgpl
|
|
lgpl with exceptions or zpl
|
|
gnu library or lesser general public license (lgpl)
|
|
gnu lesser general public license v3 (lgplv3)
|
|
gnu general public license v2 (gplv2)
|
|
|
|
# PSF-2.0
|
|
python software foundation
|
|
python software foundation license
|
|
|
|
|
|
unauthorized_licenses:
|
|
###########################
|
|
# Strong Copy Left Licenses
|
|
###########################
|
|
gpl v3
|
|
|
|
[Authorized Packages]
|
|
litellm-admin-mcp: ==0.1.0 # MIT, verified at https://github.com/BerriAI/liteadmin-mcp/blob/d35ec9c19c117d4c50cc1eccf6ce1296aac25a1a/LICENSE
|
|
# Apache-2.0 https://github.com/chroma-core/hnswlib#Apache-2.0-1-ov-file
|
|
chroma-hnswlib: >=0.7.3
|
|
# MIT https://github.com/facebookresearch/iopath?tab=MIT-1-ov-file#readme
|
|
iopath: >=0.1.10
|
|
# BSD https://github.com/PDFium/PDFium?tab=BSD-3-Clause-1-ov-file#readme
|
|
pypdfium2: >=4.30.0
|
|
# MIT https://github.com/voyage-ai/voyageai-python?tab=MIT-1-ov-file#readme
|
|
voyageai: >=0.2.3
|
|
# OpenLDAP Public License, which is a permissive BSD style license
|
|
# https://github.com/jnwatson/py-lmdb/?tab=License-1-ov-file#readme
|
|
lmdb: >=1.5.1
|
|
openai: >=1.1.0 # APACHE 2.0 License
|
|
httpx: >=0.25.0 # BSD 3-Clause License
|
|
fastapi: >=0.115.5 # MIT License
|
|
starlette: >=0.47.2 # MIT License
|
|
uvicorn: >=0.29.0 # BSD 3-Clause License
|
|
anthropic: >=0.21.3 # MIT License
|
|
detect-secrets: >=1.5.0 # MIT License
|
|
importlib-metadata: >=6.8.0 # Apache 2.0 License
|
|
tokenizers: >=0.20.2 # Apache 2.0 License
|
|
jinja2: >=3.1.4 # BSD 3-Clause License
|
|
litellm-proxy-extras: >=0.1.1 # MIT License
|
|
litellm-proxy: >=1.109.0 # MIT, verified in repository LICENSE for litellm-rust and litellm/packaging/litellm-proxy
|
|
litellm-enterprise: >=0.1.1 # LiteLLM Enterprise License
|
|
a2a-sdk: >=0.3.22 # Apache 2.0 license
|
|
anyio: >=4.5.0 # Unknown license
|
|
httpx-aiohttp: >=0.1.4 # Unknown license
|
|
backoff: >=2.2.1 # Unknown license
|
|
pyyaml: >=6.0.2 # Unknown license
|
|
gunicorn: >=23.0.0 # Unknown license
|
|
uvloop: >=0.21.0 # Unknown license
|
|
boto3: >=1.34.34 # Unknown license
|
|
redis: >=5.2.1 # Unknown license
|
|
prisma: >=0.11.0 # Unknown license
|
|
mangum: >=0.17.0 # Unknown license
|
|
pynacl: >=1.5.0 # Unknown license
|
|
google-cloud-aiplatform: >=1.47.0 # Unknown license
|
|
mcp: >=1.5.0 # Unknown license
|
|
google-generativeai: >=0.5.0 # Unknown license
|
|
async_generator: >=1.10.0 # Unknown license
|
|
wheel: >=0.40.0 # MIT License - https://github.com/pypa/wheel/blob/main/LICENSE.txt
|
|
langfuse: >=2.45.0 # Unknown license
|
|
prometheus_client: >=0.20.0 # Unknown license
|
|
ddtrace: >=2.19.0 # Unknown license
|
|
orjson: >=3.10.12 # Unknown license
|
|
apscheduler: >=3.10.4 # Unknown license
|
|
fastapi-sso: >=0.16.0 # Unknown license
|
|
filelock: >=3.20.0 # Unlicense (public domain) - https://unlicense.org / https://github.com/tox-dev/filelock
|
|
pyjwt: >=2.9.0 # Unknown license
|
|
vcrpy: >=8.2.1 # MIT License - https://github.com/kevin1024/vcrpy/blob/master/LICENSE.txt
|
|
locust: >=2.45.0 # MIT License - https://github.com/locustio/locust/blob/master/LICENSE
|
|
python-multipart: >=0.0.20 # Unknown license
|
|
pillow: >=11.0.0 # Unknown license
|
|
azure-ai-contentsafety: >=1.0.0 # Unknown license
|
|
azure-identity: >=1.16.1 # Unknown license
|
|
azure-storage-file-datalake: >=12.20.0 # Unknown license
|
|
opentelemetry-api: >=1.25.0 # Unknown license
|
|
opentelemetry-sdk: >=1.25.0 # Unknown license
|
|
opentelemetry-exporter-otlp: >=1.25.0 # Unknown license
|
|
sentry_sdk: >=2.21.0 # Unknown license
|
|
cryptography: >=43.0.1 # Unknown license
|
|
tzdata: >=2025.1 # Unknown license
|
|
urllib3: >=2.0.0 # MIT license - https://github.com/urllib3/urllib3
|
|
audioread: >=3.0.1 # MIT license manually verified - https://github.com/beetbox/audioread
|
|
python-dotenv: >=1.0.0 # Unknown license
|
|
tiktoken: >=0.8.0 # Unknown license
|
|
click: >=8.1.7 # Unknown license
|
|
rich: >=13.7.1 # Unknown license
|
|
aiohttp: >=3.10.2 # Unknown license
|
|
tenacity: >=8.2.3 # Unknown license
|
|
pydantic: >=2.10.2 # Unknown license
|
|
jsonschema: >=4.22.0 # Unknown license
|
|
websockets: >=13.1.0 # Unknown license
|
|
polars: >=1.31.0 # Unknown license, the license.md allows free of charge use
|
|
rq: >=2.7.0 # BSD-2-Clause License
|
|
resend: >=2.23.0 # MIT License
|
|
semantic_router: >=0.1.10 # MIT License
|
|
aurelio-sdk: >=0.0.19 # MIT License
|
|
pondpond: >=1.4.1 # Apache 2.0 License
|
|
fastuuid: >=0.13.0 # BSD-3-Clause license
|
|
llm-sandbox: >=0.3.31 # MIT License - https://github.com/vndee/llm-sandbox
|
|
RestrictedPython: >=8.1 # ZPL-2.1 (Zope Public License, BSD-style permissive) - https://github.com/zopefoundation/RestrictedPython/blob/master/LICENSE.txt
|
|
nodejs-wheel-binaries: >=24.12.0 # MIT license manually verified
|
|
grpcio: >=1.69.0 # Apache License 2.0
|
|
jaraco.context: >=6.1.0 # Unknown license
|
|
pypdf: >=6.6.2 # BSD-3-Clause license - https://github.com/py-pdf/pypdf/blob/main/LICENSE
|
|
hf-xet: >=1.4.2 # Apache 2.0 License - https://github.com/huggingface/xet-tools/blob/main/LICENSE
|
|
pytest-asyncio: >=1.2.0 # Apache 2.0 license
|
|
pytest: >=9.0.3 # MIT license
|
|
pytest-xdist: >=3.8.0 # MIT License
|
|
ruff: >=0.15.3 # MIT License
|
|
types-requests: >=2.32.4.20260107 # Apache 2.0 license (typeshed)
|
|
types-pyyaml: >=6.0.12.20250915 # Apache 2.0 license (typeshed)
|
|
fakeredis: >=2.34.1 # BSD license
|
|
ldap3: >=2.9.1,<3.0 # LGPL-3.0-or-later verified in the 2.9.1 wheel LICENSE.txt, https://pypi.org/project/ldap3/2.9.1/
|
|
psycopg: >=3.2.13 # LGPL-3.0 license
|
|
psycopg-binary: >=3.2.13 # LGPL-3.0 license
|
|
psycopg2-binary: >=2.9.11 # LGPL with exceptions
|
|
lunary: >=1.0.36 # Unknown license manually verified
|
|
logfire: >=4.6.0 # MIT License
|
|
pygithub: >=2.8.1 # LGPL license
|
|
argon2-cffi: >=25.1.0 # MIT License
|
|
blockbuster: >=1.5.26 # Apache 2.0 license
|
|
pylint: >=3.3.9 # GPLv2 license
|
|
httpx2: >=2.5.0 # BSD 3-Clause License
|
|
httpcore2: >=2.5.0 # BSD 3-Clause License
|
|
mcp-types: >=2.2.0 # MIT License
|
|
langgraph: >=1.0.10 # MIT License
|
|
langgraph-prebuilt: >=1.0.8 # MIT License - https://github.com/langchain-ai/langgraph/blob/main/LICENSE
|
|
hypothesis: >=6.165.10 # MPL 2.0 license
|
|
pytest-rerunfailures: >=15.1 # MPL 2.0 license
|
|
certifi: >=2026.10.19 # MPL 2.0 license - https://github.com/certifi/python-certifi/blob/master/LICENSE
|
|
pytest-recording: >=0.13.4 # MIT license
|
|
expression: >=5.6.0 # MIT License - https://github.com/cognitedata/Expression/blob/main/LICENSE
|
|
typing-extensions: >=4.13.0 # PSF-2.0 license - https://github.com/python/typing_extensions/blob/main/LICENSE
|
|
backports-zstd: >=1.0.0 # PSF-2.0 license - https://github.com/Rogdham/backports.zstd/blob/master/LICENSE.txt
|