-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix keyring_info when using keyring library #4964
Conversation
This line used to always clobber the passphrase retrieved via the `keyring` library, making it useless on everything except gnome-keyring. After this change, it'll only use the alternate method if the default one didn't work.
Hi @sargunv , thanks for identifying this issue and raising a PR. Your fix resolves the bug. |
@felixfontein , could you please review this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per my comment
Hi @sargunv , thanks for identifying this issue and raising a PR.
Your fix resolves the bug.
I confirmed against the keyring module, and this bug is only located in this keyring_info module.
This PR is approved from my perspective.
@sargunv thanks for your contribution! Could you please add a changelog fragment? Thanks. |
added! |
Docs Build 📝Thank you for contribution!✨ This PR has been merged and your docs changes will be incorporated when they are next published. |
Co-authored-by: Felix Fontein <[email protected]>
Backport to stable-5: 💚 backport PR created✅ Backport PR branch: Backported as #4991 🤖 @patchback |
* Fix keyring_info when using keyring library This line used to always clobber the passphrase retrieved via the `keyring` library, making it useless on everything except gnome-keyring. After this change, it'll only use the alternate method if the default one didn't work. * delete whitespace * add changelog fragment * Update changelogs/fragments/4964-fix-keyring-info.yml Co-authored-by: Felix Fontein <[email protected]> Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit e242670)
SUMMARY
The docs say this module works with the
keyring
library, but actually this line was clobbering any passphrase retrieved from that library, making it useless on any system without the alternate method (gnome-keyring).After this change, it'll only use the alternate method if the first one didn't work, so the return value from the first one will actually get passed through.
ISSUE TYPE
COMPONENT NAME
keyring_info
ADDITIONAL INFORMATION
Reproduction:
before the change
after the change