crunchloop / crunchloop/devcontainer

GPG / SSH agent forwarding into container

未关闭
#28 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
5
派生
0
平均合并
6 小时 17 分钟
30 天内合并 PR
15

描述

## Gap

Upstream \`@devcontainers/cli\` forwards the host's SSH agent socket and (optionally) GPG agent socket into the container by default, via mounts + env (\`SSH_AUTH_SOCK\`). We do not.

## Expected

- Default: bind-mount \`\$SSH_AUTH_SOCK\` (or platform equivalent) into the container and set \`SSH_AUTH_SOCK\` in remoteEnv. Skip cleanly when no agent socket exists.
- GPG: opt-in mirror of GnuPG agent socket, since it's more invasive.
- Both should be disable-able via \`EngineOptions\` for headless / hermetic consumers (DAP).

## Notes

Real-world consequence: \`git clone git@github.com:...\` inside a devcontainer fails under our runtime where it succeeds under the upstream CLI.

贡献指南

打开贡献指南

调研方向

Start by locating the Go runtime's EngineOptions and the container setup path, then compare the upstream @devcontainers/cli behavior for SSH_AUTH_SOCK and GPG agent sockets. Done means agent sockets are mounted and exposed when available, GPG forwarding is opt-in, and both can be disabled for headless or hermetic consumers such as DAP.

由索引模型根据 Issue 内容生成。

评估

技术栈
go
领域
devtools
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。