rage icon indicating copy to clipboard operation
rage copied to clipboard

Verbose output when dbus not being used

Open uhthomas opened this issue 2 years ago • 3 comments

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!

uhthomas avatar Oct 12 '21 13:10 uhthomas

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!

uhthomas avatar Oct 12 '21 14:10 uhthomas

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.

str4d avatar Oct 17 '21 17:10 str4d

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.

str4d avatar Jan 28 '24 03:01 str4d