Skip to content

GPG / SSH agent forwarding into container #28

@bilby91

Description

@bilby91

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions