pws icon indicating copy to clipboard operation
pws copied to clipboard

Feature: print password, and authenticated session

Open AlexRiedler opened this issue 10 years ago • 3 comments

It would be awesome if we could have an authenticated session; and print password.

My use case is the following: my .bashrc file grabs various ENV variables eg. AWS_SECRET_PASSWORD from a tool (such as pws). something like:

AWS_SECRET_KEY=$(pws get aws_secret_key)

but I also would not want to do if there is plenty of keys

AWS_SECRET_KEY=$(pws get --print aws_secret_key)
FOO_SECRET=$(pws get --print foo_secret)

so having something like:

pws login # prompts for the password (maybe with an auto-log out)

AWS_SECRET_KEY=$(pws get --print aws_secret_key)
FOO_SECRET=$(pws get --print foo_secret)

pws logout

I know this is a lot to ask for, but just throwing up this idea.

AlexRiedler avatar Aug 18 '14 16:08 AlexRiedler

(print password)++

I want to use pws on a remote server that servers as my primary dev machine. So I have no access to a "clipboard".

louis-clotman avatar Mar 17 '17 15:03 louis-clotman

@janlelis Would you be open to merging a PR that implemented this behavior?

alex0112 avatar Oct 30 '18 04:10 alex0112

@AlexRiedler @lsc21 @alex0112 The "print password" feature has been implemented and is part of the 1.0.8 release. Its usage is:

$ pws print-screen <key>

Regarding the authenticated session: I really like the idea and how it works out in this use-case. On the other hand it could take away some of the simplicity of this library and may weaken its security. I'll think about it and I am open for ideas, especially regarding where to store the session/master password. Maybe in the system's keychain...

janlelis avatar Jan 28 '19 22:01 janlelis