"Connection Refused" when accessing 1Password ssh-agent within DevContainer
I've been trying to get this to work for a few hours and I'm at a loss for what to do next, so asking for ideas about what the problem could be.
My software stack is macOS 26/Tahoe, 1Password 8.11.16, Orbstack (for containers), and VSCode w/DevContainers. I have my SSH keys in 1Password and when executed from the host system, the keys are visible (and SSH works):
% SSH_AUTH_SOCK="${HOME}/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock" ssh-add -l
256 SHA256:... (ED25519)
% ssh -T git@github.com
Hi <username>! You've successfully authenticated, but GitHub does not provide shell access.
I have the DevContainer configuration to bind-mount the socket into the container and set a proper `SSH_AUTH_SOCK` value:
"mounts": [
"source=${env:HOME}/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock,target=/tmp/ssh-agent-1password.sock,type=bind"
],
"remoteEnv": {
"SSH_AUTH_SOCK": "/tmp/ssh-agent-1password.sock"
},
... when I am in the container, the socket looks right, `SSH_AUTH_SOCK` is correct, but `ssh-add` fails to connect with an error:
root@5a53d7e1c685:/tmp# ls -la ssh-agent-1password.sock
srw------- 1 root root 0 Nov 2 16:36 ssh-agent-1password.sock
root@5a53d7e1c685:/tmp# echo $SSH_AUTH_SOCK
/tmp/ssh-agent-1password.sock
root@5a53d7e1c685:/tmp# ssh-add -l
Error connecting to agent: Connection refused
I've verified that the directory itself IS accessible to docker by changing `source=${env:HOME}/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock` to be `source=${env:HOME}/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sockk` and restarting the container -- when I do that, the directory `agent.sockk` is created within the directory as expected (which I am interpreting as evidence that Docker can traverse all the way to the directory and create a sub-folder within it).
I suspect what is happening is that 1Password is blocking the connection entirely (meaning it isn't a filesystem permissions error or otherwise), but I'm not sure how to prove that is the case or how to fix it if it IS the case.
Any ideas for diagnostic steps to take next?
