Hi,
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 28/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 5.8k
- Fork
- 509
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun 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 devcontainers/spec
-
CLI sorts Feature options fewest-first, against specForse già presa @nozaq l’ha presa 113 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
devcontainers/spec#755 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
devcontainers/spec#754 · 1 commento · 2 reazioni ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
devcontainers/spec#735 · 1 commento ·
-
Tighten lockfile specAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
devcontainers/spec#579 · 1 commento ·
-
ElbankoAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 5/100
devcontainers/spec#784 · 2 reazioni ·
Tutte le issue di devcontainers/spec
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
bigbio/sdrf-pipelines#372 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Djangonauts
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
render-engine/render-engine-cli#71 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
davila7/claude-code-templates#1491 ·
I maintainer di solito rispondono entro 1 giorno
-
language P2 roadmap
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100