Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Password Eval Option #25

Open
noctuid opened this issue Aug 5, 2015 · 8 comments
Open

Add a Password Eval Option #25

noctuid opened this issue Aug 5, 2015 · 8 comments

Comments

@noctuid
Copy link

noctuid commented Aug 5, 2015

It would be nice to have an option/flag that would take a command (e.g. a gpg command) to run and use the output as a password. This way the account password wouldn't show up in the process listing or in the shell history file. Since there are already two different options (-a and -b) for giving account information, it might be better to have a different syntax to specify that the password part is a command and not a string instead of adding 2+ extra options. Another possibility would be to only be able to specify a password command in the config file.

@mcrapet
Copy link
Owner

mcrapet commented Aug 15, 2015

Hi,

For security aspects, I agree. We need to think about supported any keystore to retrieve password.
For now it's plain text in the config file:

$ cat ~/.config/plowshare/plowshare.conf 
...
115/a=plowshare:xxx
2shared/b = plowshare@gmx.com:xxxx
...

This will not appear in shell history.

@mcrapet
Copy link
Owner

mcrapet commented Jun 12, 2016

Hi,
Were you thinking about this kind of usage: https://www.passwordstore.org/

@noctuid
Copy link
Author

noctuid commented Jun 12, 2016

I was thinking about being able to get the password from any command like with isync's PassCmd option. For example:

PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.mailpass.gpg"

For isync, I'm just piping the output of a gpg command into awk to choose the correct password. That said, I do use pass and would be fine using it for this. Would there be a benefit to using pass specifically?

@mcrapet
Copy link
Owner

mcrapet commented Jun 25, 2016

.mailpass.gpg is an (ciphered) text file containing credentials ?

@noctuid
Copy link
Author

noctuid commented Jun 26, 2016

Yes, in this case it would just contain the password.

@mcrapet
Copy link
Owner

mcrapet commented Jun 27, 2016

What do you think of this: https://keybase.io/docs/kbfs

@noctuid
Copy link
Author

noctuid commented Jul 4, 2016

Well with the equivalent of PassCmd, it shouldn't matter how the file was encrypted. Are you suggesting some sort of integration that would only work with the keybase filesystem?

@mcrapet
Copy link
Owner

mcrapet commented Apr 5, 2017

Note for me: don't use libgnome-keyring but libsecret.
https://wiki.gnome.org/Projects/Libsecret

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants