Hi,
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 28/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Keine Sprachdaten
- Sterne
- 5.8k
- Forks
- 509
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus devcontainers/spec
-
CLI sorts Feature options fewest-first, against specEvtl. vergeben @nozaq hat das vor 113 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
devcontainers/spec#755 · 1 Kommentar ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
devcontainers/spec#754 · 1 Kommentar · 2 Reaktionen ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
devcontainers/spec#735 · 1 Kommentar ·
-
Tighten lockfile specOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 62/100
devcontainers/spec#579 · 1 Kommentar ·
-
ElbankoOffen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 5/100
devcontainers/spec#784 · 2 Reaktionen ·
Alle Issues in devcontainers/spec
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
mglaman/phpstan-drupal#1078 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug]: Python mod.Box[T] annotation gets a false generic_arg edge that replaces the parameter_type one ('is' on tree-sitter nodes)Evtl. vergeben @rohit-jsfreaky hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Graphify-Labs/graphify#5110 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag
-
documentation good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
voyageurworks/launch-guard-pack#29 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
bigbio/sdrf-pipelines#372 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag