olcf / pkpass

PKI based password manager
https://pkpass.readthedocs.io/en/latest/
Other
16 stars 3 forks source link

pkpass distribute should list recipients #185

Closed kincl closed 4 years ago

kincl commented 4 years ago

When running pkpass distribute we should list the users that will get the password.

ginsburgnm commented 4 years ago

I agree this could be beneficial; do you have input on how it should look? This is an example of current distribution output

pkpass> distribute testpass -g examplegroup                                                                                                                                                                                                          
Using Slot0 (0x0): Yubico Yubikey 4 CCID                                                                                                                                                                                                        
Enter Pin/Passphrase:                                                                                                                                                                                                                           
The following password files have matched:                                                                                                                                                                                                      
/home/ngin/git/passwords/base/testpass                                                                                                                                                                                                       
Is this list correct? (y/N) y                                                                                                                                                                                                                   
Percent: [------------------------------------------------->] 100%  

Should it just spit out the user list? something like the following

pkpass> distribute testpass -g examplegroup                                                                                                                                                                                                          
Using Slot0 (0x0): Yubico Yubikey 4 CCID                                                                                                                                                                                                        
Enter Pin/Passphrase:     
The following users will receive the password:
john,lisa,ben                                                                                                                                                                                                                      
The following password files have matched:                                                                                                                                                                                                      
/home/ngin/git/passwords/base/testpass                                                                                                                                                                                                       
Are these lists correct? (y/N) y                                                                                                                                                                                                                   
Percent: [------------------------------------------------->] 100%  

Should there be a separate confirmation input line?