ryantm / agenix

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

Support using the user's ssh-agent #252

Open Lindenk opened 7 months ago

Lindenk commented 7 months ago

Currently using the agenix cli does not using the user's running ssh-agent (if there is one). This makes rekeying or any other operation that requires decryption either cumbersome (requiring the use of the -i flag to specify a private key`), or very difficult/insecure if the key is stored in gpg and needs to be exported into a passwordless file while working

WillPower3309 commented 6 months ago

This should fix #4

WillPower3309 commented 6 months ago

Looks like ssh agent isn't yet supported in age, discussion here: https://github.com/FiloSottile/age/discussions/244

WillPower3309 commented 6 months ago

Relevant issue in rage (opened by our fearless leader): https://github.com/str4d/rage/issues/160