`sbx secret set mistral` is not picked up by docker-agent running in sbx (custom secret required)

Aperta
#4,645 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@dgageot ci sta già lavorando.

Dal 21/10/2026.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
62/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go
Ambito
ai

Direzione di ricerca

Start by tracing how docker-agent obtains built-in provider credentials for models, then compare the Mistral path with providers that work. The issue names no source files or tests, so first locate the credential handling and its coverage. Done when sbx secret set mistral supplies the key to a Mistral agent without the custom-secret workaround.

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

Descrizione

area/providers area/security
Description

When running docker-agent inside an sbx sandbox with a Mistral model, the built-in secret stored with sbx secret set mistral is not used. Requests to the Mistral API fail, and the only way I found to make it work is to create a custom secret.

model failed: error receiving from stream: HTTP 401: POST
"https://api.mistral.ai/v1/chat/completions": 401 Unauthorized {"detail":"Invalid API
Key"}
Expected Behavior

Use the Mistral built-in service: https://docs.docker.com/ai/sandboxes/configuration/credentials/#built-in-services.

sbx secret set mistral should work out of the box with docker-agent, as it does for other providers.

Actual Behavior

See Description section

Steps to Reproduce
  1. Store the key as a built-in secret:
    sbx secret set mistral
  2. Run an agent that uses a Mistral model:
    sbx run docker-agent -- run agent.yaml
  3. The Mistral API key is not found or injected.
Docker Agent version

v1.142.0 and v1.151.0 (the one linked to sbx 0.48.0)

OS & terminal

macOS (but running on Linux because with sbx)

Model used

ministral-3b-2512

Error output
model failed: error receiving from stream: HTTP 401: POST
"https://api.mistral.ai/v1/chat/completions": 401 Unauthorized {"detail":"Invalid API
Key"}
Screenshots

No response

Additional context
Workaround
sbx secret set-custom --host api.mistral.ai --env MISTRAL_API_KEY \
  --placeholder sbx-mistral-key --value "$MISTRAL_API_KEY"

sbx run -e MISTRAL_API_KEY=sbx-mistral-key -e DOCKER_AGENT_AUTO_UPDATE=0 \
  docker-agent -- run agent.yaml --theme default-light
Lingua principale
Go
Stelle
4.7k
Fork
565
Merge medio
18h 52m
PR unite (30g)
221

Preparare l'ambiente

Apri in Codespaces

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

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 docker/docker-agent

Tutte le issue di docker/docker-agent

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.