UX: Support reading password from file(descriptor) #257
Replies: 3 comments 5 replies
-
See #256 (comment). If this becomes a commonly requested feature we might consider it, and I'd like to hear use cases to better understand how it would be used. |
Beta Was this translation helpful? Give feedback.
-
I'd like to be able to pipe a password into age for a simple one-line command for decrypting a file and setting env vars (some api tokens). But i want to read the password from the OS's keychain and pass it in to age in a similar way docker login does...
|
Beta Was this translation helpful? Give feedback.
-
using "expect" |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be very useful, if age supported reading password from file descriptor/path.
It can be done safely, it would be useful for automation and AFAIU it is the only encryption mode that actually does authenticated encryption.
AFAIK types of usage shown below should be safe. Both can less or more practically be read by the same user, but a more permanent private key would be even easier to read.
Beta Was this translation helpful? Give feedback.
All reactions