ryantm / agenix

age-encrypted secrets for NixOS and Home manager
https://matrix.to/#/#agenix:nixos.org
Creative Commons Zero v1.0 Universal
1.34k stars 108 forks source link

Support ssh auth socket for secret encryption and decryption #182

Open ehllie opened 1 year ago

ehllie commented 1 year ago

I store my SSH keys inside 1password, which lets use me use them by setting the path to their auth socket as my IdentityAgent in my ssh config file. That works transparently for most tools that use ssh, but agenix seems to try directly reading the contents of the identity file inside ~/.ssh, which is not present on my system. It would be very convenient if it had the capacity to use SSH_AUTH_SOCK env var or IdentityAgent from ~/.ssh/config

billimek commented 8 months ago

+1 for this request, it would be very useful to leverage 1Password for securely maintaining private keys for agenix.