Optional LiteLLM deployment publishes services with public default credentials

Aperta
#603 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
docker-compose, postgresql, python

Direzione di ricerca

Start by reading the supplied docker-compose-litellm.yml profile and litellm-config.yml, focusing on the published ports and credential defaults described in the issue. Check how the profile behaves when the secret variables are unset; done means it no longer starts with public default credentials and the database and proxy ports are not exposed publicly. The issue says a fix is included in linked PR #598, so check that work before starting.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Affected versions: confirmed on main at commit d92819a9 (the project publishes no tagged release).

Summary

The supplied docker-compose-litellm.yml profile publishes PostgreSQL (port 5432) and the LiteLLM proxy (port 4000) on host ports, falling back to the fixed, documented credentials litellm_password and sk-1234 when LITELLM_DB_PASSWORD/LITELLM_MASTER_KEY are not set.

Details

POSTGRES_PASSWORD: ${LITELLM_DB_PASSWORD:-litellm_password}
ports:
  - "5432:5432"
...
environment:
  - LITELLM_MASTER_KEY=${LITELLM_MASTER_KEY:-sk-1234}
ports:
  - "4000:4000"
# litellm-config.yml
general_settings:
  database_url: postgres://litellm:litellm_password@db:5432/litellm

POC

(available upon request)

Impact

An operator who starts this optional compose profile without supplying overrides exposes a database and an LLM-proxy admin API, reachable by anyone who can reach those ports, using credentials already published in this repository.

Suggested fix: remove the fallbacks (fail startup unless strong secrets are supplied) and keep both ports off the public interface. A fix is included in the linked PR.

Fix: #598

Lingua principale
Python
Stelle
18.1k
Fork
2k
Merge medio
5m
PR unite (30g)
5

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AsyncFuncAI/deepwiki-open

Tutte le issue di AsyncFuncAI/deepwiki-open

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.