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

Feature Request: passphrase in scripts #2

Open
stsch9 opened this issue Jun 30, 2021 · 2 comments
Open

Feature Request: passphrase in scripts #2

stsch9 opened this issue Jun 30, 2021 · 2 comments

Comments

@stsch9
Copy link

stsch9 commented Jun 30, 2021

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

@angt
Copy link
Owner

angt commented Jul 1, 2021

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.

@stsch9
Copy link
Author

stsch9 commented Jul 4, 2021

Thank you for the feedback.

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