Update litellm/proxy/health_endpoints/_health_endpoints.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Oliver Jensen 2026-09-08 13:21:45 +02:00 committed by GitHub
parent 78893723f7
commit 992ee37258
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1583,16 +1583,6 @@ async def _show_no_redis_warning() -> bool:
def _show_env_credential_login_warning() -> bool:
"""
Whether the UI should warn admins that env-credential login is still enabled.
UI_USERNAME/UI_PASSWORD (or the master key, when UI_PASSWORD is unset) grant
proxy-admin access with a shared static secret: no per-person identity, no
audit trail, no password policy, and it stays valid until the env var or
master key rotates. That is fine for first-time setup, so it is on by
default, but once real admin accounts exist it should be turned off with
`general_settings.disable_env_credential_login`.
"""
from litellm.proxy.auth.login_utils import is_env_credential_login_enabled
from litellm.proxy.proxy_server import general_settings