git: host-held credentials for model-driven clone, fetch, pull and push
Los mantenedores suelen responder en 1 día
@aron-cf ya está trabajando en esto.
Desde el 8/10/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
The model-facing git entry points, which are the worker-shell git command and ws:git (cli, clone), have no way to authenticate. Host code can pass onAuth or headers on each GitClient call. A model running git push or git clone against a private repo can't, unless it puts a token on the command line, and then the token sits in the transcript.
@cloudflare/shell in cloudflare/agents had gitTools(ws, { token }) / { auth: { username, password } }. The host held the credential and added it to clone, fetch, pull, and push, so the model never saw it. We're deprecating Shell for Computer and need the same thing.
Proposal
Add a host-side auth resolver to the git client factory:
createGitClient({
auth: (url) =>
new URL(url).host === "github.com"
? { username: "x-access-token", password: env.GITHUB_TOKEN }
: undefined,
});
clone,fetch,pull,push, andls-remotecall the resolver for every network request. That covers the typed client,git.cli, the worker-shellgitcommand, andws:git.- Auth passed explicitly on a call still wins over the resolver.
- The credential never shows up in command output, error messages,
.git/config, or remote URLs written to the repo. - The resolver takes the URL, so one workspace can hold different credentials for different hosts.
- Lenguaje dominante
- TypeScript
- Estrellas
- 9.5k
- Forks
- 552
- Merge medio
- 1 d 21 h
- PR fusionados (30 d)
- 42
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de cloudflare/computer
-
Feature: add workspace.inspect() and the workspace_summary toolPosiblemente ocupada @aron-cf la tomó hace 1 día. Abiertoenhancement
cloudflare/computer#226 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Sync planning scans the full pending change set before yielding; repeated Durable Object CPU-limit failuresPosiblemente ocupada @aron-cf la tomó hace 2 días. Abiertobug
cloudflare/computer#225 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
cloudflare/computer#224 · 5 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Always run the "next" computerd workflow on push to the `release` branchPosiblemente ocupada @aron-cf la tomó hace 3 días. Abiertobug
cloudflare/computer#222 · 2 comentarios · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Make just-bash and acorn optional peer dependencies, pulled in only by the backend that needs themAbiertoenhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
cloudflare/computer#220 · 3 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
Todos los issues de cloudflare/computer
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
better-auth/better-auth#11723 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
area: docs difficulty: easy documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Worker-Erstellung bricht langsame Git-Worktree-Checkouts nach 20 Sekunden abPosiblemente ocupada @KajoVanBuyten la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
AgentSystemLabs/agent-office#367 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
pierrecomputer/pierre#1187 ·
Los mantenedores suelen responder en 1 día
-
area: frontend bug
Dificultad 1/5 1-3 horas Aptitud para principiantes 85/100
snapotter-hq/SnapOtter#2425 ·
Los mantenedores suelen responder en 1 día