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 - allow setting of master pasword via environment variable #56

Closed
dannyfast opened this issue Aug 18, 2022 · 2 comments
Closed

Comments

@dannyfast
Copy link

At present either a password must be typed in or an unencrypted file must be present to encrypt a realm.

If the password could be specified with an environment variable the command requirements could be cut by 50% and concerns over master file storage security would be removed.

@con-f-use
Copy link

con-f-use commented Feb 19, 2024

Depending on your use-case, you might want to do something like:

decrypt-command crypted-master-pw | gokey -P /dev/stdin -r test
niK&Dz7aUu

But yeah, environment variables are a pretty standard interface, that gokey should support. Same as -P - i.e. a dash character instead of a file name, to read the master-password from standard input.

@ignatk
Copy link
Contributor

ignatk commented Apr 29, 2024

Done in #72

@ignatk ignatk closed this as completed Apr 29, 2024
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

3 participants