doy / rbw

unofficial bitwarden cli
https://git.tozt.net/rbw
Other
611 stars 84 forks source link

Feature request: instead of adding another agent, use a predefined gpg-agent #84

Closed nicolas-graves closed 2 years ago

nicolas-graves commented 2 years ago

Hi ! Thanks again for this amazing piece of software. In the last year, I find myself occasionnally switching between pass and rbw. What I used to like on Arch was in particular the possibility to automatically log into my GPG key on login with pam-gnupg so I never needed to input my password once logged onto my system. Now on guix + wayland, I often have issues because of pinentry, and feel that if there was the option to use an already activated gpg-agent to use the database, it could enable some nice customizations (because of the already rich ecosystem and tools around gnupg). I haven't delved in the source code at all for now, and probably don't have time to do it in the next month, but might try to implement such a thing, but I had a question regarding such a feature before even considering that :

doy commented 2 years ago

this would be a pretty significant rewrite, and i'm not entirely sure if it would even be possible (i don't know much about how the gpg agent works, but rbw-agent handles all of the decryption, not just key storage). i think it would likely be less effort to write a separate pam-rbw module, or something along those lines.

nicolas-graves commented 2 years ago

Sorry, had read your answer, but forgot to answer it. I understand, thanks for your answer ! Maybe I'll look into it one day, but I have no time for now.