rage
rage copied to clipboard
Verbose output when dbus not being used
Environment
- OS: Ubuntu 21.04 (hirsute)
- rage version:
rage 0.6.0
What were you trying to do
Use rage with a passphrase protected key.
What happened
rage always prints No $DBUS_SESSION_BUS_ADDRESS found, falling back to curses
when working with passphrase protected keys.
❯ rage -i ~/.ssh/id_ed25519 -d test.txt.pem
No $DBUS_SESSION_BUS_ADDRESS found, falling back to curses
Hello, world!
FWIW, the reference implementation of age seems to handle this a little better.
❯ age -i ~/.ssh/id_ed25519 -d test.txt.pem
Enter passphrase for "/home/thomas/.ssh/id_ed25519":
Hello, world!
This is related to the pinentry
binary, which rage
uses for entering passphrases if available, while age
does not. I haven't yet figured out what exactly is causing it, or how to silence it.
Following up here: while I still have no idea how to silence the pinentry
dbus noise, as of rage 0.9.2
you can disable use of the pinentry
binary (and force using the CLI fallback) by setting the PINENTRY_PROGRAM
environment variable to the empty string.