Unresolved vault reference error when using Secret Provider macros in Traefik Web Server Environment
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
- 54/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- docker, typescript
Direzione di ricerca
Start by tracing the settings.writeTraefikEnv endpoint and the web server settings controller, then compare their secret resolution flow with Application and Docker Compose deployments. The issue identifies the error and the expected behavior, but does not name source files or tests. Done means Traefik environment settings can use Vault references without returning HTTP 500.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
To Reproduce
- Set up an external Secret Provider (e.g., HashiCorp Vault named vault) under Organization Settings.
- Store a secret key in the provider (e.g., secret/data/ionos with key IONOS_API_KEY).
- Navigate to Settings -> Web Server -> Traefik -> Environment.
- Add a variable using the provider interpolation syntax:
IONOS_API_KEY=${{vault.vault.ionos:IONOS_API_KEY}} - Click Save (or perform a POST /api/trpc/settings.writeTraefikEnv with payload {"json":{"env":"..."}}).
- Notice the operation fails with HTTP 500.
Current vs. Expected behavior
Current:
When configuring environment variables for Traefik (Settings -> Web Server -> Traefik -> Environment or via the tRPC API settings.writeTraefikEnv), attempting to use external Secret Provider macro interpolation syntax (such as HashiCorp Vault ${{vault..:}}) results in an unhandled HTTP 500 Internal Server Error.
The server crashes with the error: "Unresolved vault reference: call withResolvedVaultRefs() on the entity before preparing environment variables"
Expected:
Dokploy should either:
- Dynamically resolve the Vault references via withResolvedVaultRefs() on the web server/Traefik entity before injecting them into the Traefik container environment (matching the behavior of Application and Docker Compose deployments),
OR - Allow Traefik's environment to participate in the secret interpolation pipeline when reloading the proxy container.
Provide environment information
Operating System:
- Ubuntu 24 LTS
- Dokploy Version v0.31.2
Which area(s) are affected? (Select all that apply)
Traefik, Local Development
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
Secret interpolation with ${{vault...}} works as expected inside standard Application and Docker Compose services because withResolvedVaultRefs() is called during the service deployment lifecycle. However, the settings.writeTraefikEnv endpoint and the web server settings controller appear to lack this call prior to validating/preparing the environment strings for the dokploy-traefik container.
Additional log Output:
{
"error": {
"json": {
"message": "Unresolved vault reference: call withResolvedVaultRefs() on the entity before preparing environment variables",
"code": -32603,
"data": {
"code": "INTERNAL_SERVER_ERROR",
"httpStatus": 500,
"path": "settings.writeTraefikEnv",
"zodError": null
}
}
}
}
Will you send a PR to fix it?
Maybe, need help
- Lingua principale
- TypeScript
- Stelle
- 38.8k
- Fork
- 3.2k
- Merge medio
- 1g 10h
- PR unite (30g)
- 110
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Dokploy/dokploy
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Dokploy/dokploy#6151 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Healthy Swarm task shows an empty `(Error:)` suffix on the last row of the Containers tabForse già presa @AyhamJo7 l’ha presa 4 giorni fa. Apertaneeds-triage🔍
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
Dokploy/dokploy#6115 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Global search (Cmd/Ctrl+J) never sorts results by relevanceForse già presa @hamidzr l’ha presa 6 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
Dokploy/dokploy#6107 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
`utils/dns/ovh.ts`: the zone-listing 403 handler replaces the provider's error instead of chaining itForse già presa @SyncWithRaj l’ha presa 8 giorni fa. Apertabug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
Dokploy/dokploy#6075 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
MongoDB with Replica Sets enabled: container exits with code 0 and restarts in a loop (generated startup script never waits on mongod)Forse già presa @ghazy2001 l’ha presa 10 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Dokploy/dokploy#6051 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Dokploy/dokploy
Issue simili
-
[Bug]: RUN_STARTED resets the run's tool-call tally even when a subscriber suppresses the eventApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
ag-ui-protocol/ag-ui#3504 ·
I maintainer di solito rispondono entro 1 giorno
-
area/profiles area/sessions comp/desktop desktop/chat desktop/sessions P2 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
NousResearch/hermes-agent#161712 ·
I maintainer di solito rispondono entro 1 giorno
-
bug p3
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
rothgar/rabble.radio#283 ·
I maintainer di solito rispondono entro 1 giorno
-
bug from-app needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
nightly-labs/openbot#19805 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
OHDSI/Data2Evidence#3760 ·
I maintainer di solito rispondono entro 3 giorni