Repository navigation
fix(bep): name a missing Secret Service when a sign-in cannot be read or saved - #3944
norrietaylor wants to merge 1 commit into
Conversation
… or saved On a Linux host with no Secret Service, min auth login printed the raw D-Bus error under 'the host keychain refused to read the sign-in'. The store refused nothing: no provider was on the session bus. The sign-in now reports no Secret Service and no session bus as their own errors, which name what is absent and what to do, with the wording min secret already uses for the same two causes.
|
Warning Review limit reached
This review includes 1 billable file and costs up to $0.25.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 54 minutes for your next included review. View limit details
|
|
Approved: no findings at Nothing to do. Clobber: none seen. |
|
Closing in favour of #4001. That pull request gives a Linux host with no Secret Service an encrypted file store, so the errors reworded here are no longer reached on such a host. The one refusal that remains, for a machine whose keyring exists but cannot be reached from the current session, gets its text in #4001. The branch stays for reference. |
Problem
On a Linux host with no Secret Service provider,
min auth logincompletes the GitHub sign-in and then prints:The store refused nothing. No Secret Service is on the session bus, and the message gives the user no next step.
min secretalready reports the same cause with a full sentence (StoreError::NoSecretServiceincrates/bep/src/store.rs).Change
SignInErrorgainsNoSecretServiceandNoSessionBus. The Linux sign-in store returns them for a read and for a write when the cause is no provider or no session bus. Every other cause keeps its current message.After, with the same host:
The remedy sentence is the one
min secretprints. I did not check it on a host.Not changed
A headless Linux host or a CI runner with no keyring still cannot sign in. This PR only says why.
Testing
just fmt-checkpasses on macOS.just test-cross. The added assertions in the Secret Service test ofcrates/bep/src/signin.rsare unrun until the Linux lane runs them.