gopasspw / gopass

The slightly more awesome standard unix password manager for teams
https://www.gopass.pw/
MIT License
5.84k stars 487 forks source link

gopass setup should validate empty email #2949

Open jcrben opened 4 days ago

jcrben commented 4 days ago

Summary

At least if you're using the gpg backend, it needs an email otherwise it spits out a message like this:

2024/09/25 18:53:46 failed to check private keys: failed to create new private key: 
failed to create new private key: 
failed to run command: '/usr/bin/gpg [/usr/bin/gpg --batch --gen-key]': 
"gpg: Generating a RSA/RSA key pair\ngpg: -:8: missing argument\n" - exit status 2

Probably obvious to most, but still better to give a friendly validation error.

Steps To Reproduce

See above

Expected behavior

Refuse to proceed with empty email and gpg backend?

Environment

Additional context