Skip to content
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

Verbose output when dbus not being used #264

Open
uhthomas opened this issue Oct 12, 2021 · 3 comments
Open

Verbose output when dbus not being used #264

uhthomas opened this issue Oct 12, 2021 · 3 comments

Comments

@uhthomas
Copy link

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
Copy link
Author

uhthomas commented Oct 12, 2021

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!

@str4d
Copy link
Owner

str4d commented Oct 17, 2021

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
Copy link
Owner

str4d commented Jan 28, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants