-
-
Notifications
You must be signed in to change notification settings - Fork 515
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
cmd/age: passphrase optionnaly supplied from an environment variable #520
base: main
Are you sure you want to change the base?
Conversation
The passphrase is now read from the AGE_PASSPHRASE environment variable, as an alternative to being requested interactively. This enables the following usage patterns: - automation of the encryption, without having to manage an additional private key file - provide a less error prone way of supplying a passphrase. Copy-pasting to an echo-less prompt, for example, is often hazardous on some platforms.
Hi, Edit: Never mind, figured out. |
This would be nice to see, as it would allow one to use 1Password Secret reference syntax for shared passphrases. |
This would be great for automation/CI! |
Cross-referencing related/duplicated discussion/PR topics:
|
Thanks @wj 🙏 , you saved me a few hours. When I get a few minutes I'll be building this and giving it a go 😀 |
The passphrase is now read from the AGE_PASSPHRASE environment variable, as an alternative to being requested interactively.
This enables the following usage patterns: