Prepares a sandbox for GitHub git over the forwarded host ssh-agent (YubiKey PIV slot 9a, served by docker-piv-agent). The private key and PIN never enter the sandbox — each git network op makes the HOST YubiKey blink for a tap, which the human approves. Pairs with host-side ssh-agent forwarding (the daemon's SSH_AUTH_SOCK at startup). What it does: - network-policy runtime: allow GitHub SSH egress. sbx egress is a TLS-intercepting HTTP(S) proxy, so raw SSH on port 22 is closed at kex by default; this opens it (also covers ssh.github.com:443 for the 443 fallback). - lifecycle startup (idempotent; runs on every boot): accept GitHub's host key on first use (a non-TTY agent can't answer the interactive yes/no prompt), and rewrite any HTTPS github URL to SSH so all git traffic routes through the forwarded agent.
| Type | Required | Description | |
|---|---|---|---|
com.docker.sandbox/network-policy@1 | Required | — | |
com.docker.sandbox/lifecycle@1 | Required | — | |
sbx run <agent> --kit cdupuis/sbx-kit-github-yubikey:1.0.0Run the following command to install sbx on your machine.
brew install docker/tap/sbxwinget install Docker.sbx