Separate service metadata access from reading raw environment values

Aperta
#6,079 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start by tracing the API endpoints that return Compose and Application environment data, then inspect how API key permissions are checked for project listing and service details. The issue gives no file paths or tests, so locate those entry points and existing authorization tests first. Done means a metadata-only key can inspect service status without receiving environment values, while an explicitly authorized key can still read them; cover both cases in tests.

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

Descrizione

enhancement
What problem will this feature address?

We want to give automation and AI agents access to Compose service metadata and deployment status. On our self-hosted instance, an API key that successfully listed projects also received the complete Compose environment block when retrieving service details. We did not verify the key's exact role.

Describe the solution you'd like

Separate permission to read service metadata from permission to read raw environment values. A metadata-only key should be able to list projects and inspect service status while Dokploy omits or redacts environment values before sending the response. Require explicit permission for raw values and enforce this across API responses containing Compose or Application environment data.

An acceptance check could use a test service with a dummy env value. A metadata-only key can read service metadata, but the dummy value never appears in its responses. A separately authorized key can read it.

Describe alternatives you've considered

The official MCP server can redact fields before returning them to the MCP client. A server-side permission would also protect direct API and CLI users.

Related: #2817 (environment value display), #4525 (partial env updates).

Lingua principale
TypeScript
Stelle
38.8k
Fork
3.2k
Merge medio
1g 10h
PR unite (30g)
110

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 Dokploy/dokploy

Tutte le issue di Dokploy/dokploy

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.