litellm/ui
Viktor AI d8d6a704ab fix: gate log retention policy behind enterprise license
The maximum_spend_logs_retention_period feature was accessible to all
users without an enterprise license check. This adds enterprise gating
at multiple layers:

Backend:
- SpendLogCleanup._should_delete_spend_logs() now checks premium_user
- Startup scheduling in proxy_server.py checks premium_user
- Dynamic rescheduling in _reschedule_spend_log_cleanup_job checks premium_user
- _update_general_settings skips retention config for non-premium users
- /config/update API returns 403 for non-premium users setting retention

Frontend:
- LoggingSettings.tsx disables retention input for non-premium users
- Shows 'Enterprise Feature' link for non-premium users

Tests:
- All existing tests updated to mock premium_user=True
- New test_should_delete_spend_logs_requires_premium verifies the gate

Fixes BerriAI/litellm#enterprise-retention-gate
2026-06-19 16:09:00 +00:00
..
litellm-dashboard fix: gate log retention policy behind enterprise license 2026-06-19 16:09:00 +00:00
Dockerfile feat: add componentized proxy deployment with gateway, backend, ui, and migrations (#27557) 2026-05-16 09:25:17 -07:00
nginx.conf feat: add componentized proxy deployment with gateway, backend, ui, and migrations (#27557) 2026-05-16 09:25:17 -07:00