I like it when programs have a way to specify a command to retrieve secrets.
mbsync (https://isync.sourceforge.io/mbsync.html) e.g. has afaik 3 options to provide a password for IMAP authentication:
If you don't configure a password, you'll be prompted on execution.
You can also put the plain text password in the configuration (impractical if you want to share your configuration).
But there is also a configuration option to provide a command to retrieve the password.
That way you can delegate the password handling to another program, e.g. a password manager like pass(1) (https://www.passwordstore.org/) or some interactive graphical prompt.
No comments yet.