secret icon indicating copy to clipboard operation
secret copied to clipboard

Feature Request: passphrase in scripts

Open stsch9 opened this issue 4 years ago • 2 comments

I'm a fan of our tool. I have the following use case: I have several .secret files .secret_user_x that I would share with different users. The .secret_user_x files contain a key and I can share passwords with users (env /PATH/TO/SECRET/FILE/.secret_user_x secret pass common_secret). The passphrase for these .secret_user_x file is stored in a main .secret file. I want to use a script to create and query the .secret_user_x files.

So i have the following feature request: Would it be possible to pass the passphrase via script. I use expect, but I am not a fan of expect. Would it be possible to call something like this: echo <PASSPHRASE> | env /PATH/TO/SECRET/FILE/.secret_user_x secret show key or secret show passphrase_user_A | env /PATH/TO/SECRET/FILE/.secret_user_x secret show key

stsch9 avatar Jun 30 '21 11:06 stsch9

Hello, glad to hear I'm not the only one using it :) For your request, I already use stdin to define passwords but I'll see if, with few modifications, I can help for your usecase.

angt avatar Jul 01 '21 19:07 angt

Thank you for the feedback.

stsch9 avatar Jul 04 '21 19:07 stsch9