Hi,
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 28/100
Línea de trabajo
Start with the devcontainer specification and its existing customization fields; the issue names no files or tests. Work out how an SSH agent allow-list would fit the specification, including filtering identity responses and signing requests, and define what happens when a host has multiple agent sockets. Done means the proposal has a clear, agreed specification and tests for its behavior.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hi,
I'm nowadays using devcontainers typically to create project-specific sandboxes for Coding-Agents.
My Problem is that devcontainers forwards my SSH-Agent-Socket and therefore allows a container to access all SSH-Keys provided by that agent.
So processes inside a Container can utilize my Keys and therefore have much more access as they need.
What I would like to have would be an allow-list for ssh-keys in the specification.
Something like (proposal):
{
"name": "Project A",
"customizations": {
"sshAgent": {
"allowedKeys": [
"id_ed25519_client_a",
"SHA256:4aF...k9z"
]
}
}
}
(It might also be a good idea to allow specify the SSH-Agent-Socket on the host - in case someone has multiple sockets running...)
This could be archived through a simple SSH-Agent-Filter:
[ Container ] (SSH-Client)
│
▼ /tmp/ssh-agent-devcontainer-<project-id>.sock
[ Host-Proxy ] (SSH-Agent-Filter) ── Allowlist-Filtering
│
▼ $SSH_AUTH_SOCK
[ Host SSH-Agent ] (contains all keys)
So the Host could start a Proxy-Daemon, which creates a dedicated SSH-Agent-Socket.
The socket implements the SSH-Agent-Wire-Protocol, that allows to:
SSH2_AGENTC_REQUEST_IDENTITIES: catch the real ssh-agent and filter the responses to the devcontainerSSH2_AGENTC_SIGN_REQUEST: verify allow-listed key-signatures when using a key
This would allow for much easier handling of container-specific ssh-keys.
I hope you like it and would be really glad if this could be added.
Originally posted by @chdalski in https://github.com/devcontainers/spec/discussions/780
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 5.8k
- Forks
- 509
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin 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 devcontainers/spec
-
CLI sorts Feature options fewest-first, against specPosiblemente ocupada @nozaq la tomó hace 113 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
devcontainers/spec#755 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
devcontainers/spec#754 · 1 comentario · 2 reacciones ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
devcontainers/spec#735 · 1 comentario ·
-
Tighten lockfile specAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
devcontainers/spec#579 · 1 comentario ·
-
ElbankoAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 5/100
devcontainers/spec#784 · 2 reacciones ·
Todos los issues de devcontainers/spec
Issues similares
-
bug documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
cqframework/vscode-cql#198 ·
-
bug documentation good first issue help wanted testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Show evidence time and supersede warnings in the memory inspectorPosiblemente ocupada @Sinchanak-212 la tomó hoy. Abiertoarea: ux good first issue priority: medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
rohit746/pdf-view.nvim#109 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
daeh/zotero-markdb-connect#187 ·