8000 fix(bep): name a missing Secret Service when a sign-in cannot be read or saved by norrietaylor · Pull Request #3944 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

fix(bep): name a missing Secret Service when a sign-in cannot be read or saved - #3944

Closed
norrietaylor wants to merge 1 commit into
mainfrom
fix/signin-names-missing-secret-service
Closed

norrietaylor wants to merge 1 commit into
mainfrom
fix/signin-names-missing-secret-service

Conversation

@norrietaylor
Copy link
Copy Markdown
Member

Problem

On a Linux host with no Secret Service provider, min auth login completes the GitHub sign-in and then prints:

error: GitHub accepted the sign-in, but it was not saved: the host keychain refused to read the sign-in: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable

The store refused nothing. No Secret Service is on the session bus, and the message gives the user no next step. min secret already reports the same cause with a full sentence (StoreError::NoSecretService in crates/bep/src/store.rs).

Change

SignInError gains NoSecretService and NoSessionBus. 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:

error: GitHub accepted the sign-in, but it was not saved: `min auth login` keeps the sign-in in Secret Service on Linux, and the D-Bus session bus has no Secret Service: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable. Install a Secret Service provider such as GNOME Keyring (the `gnome-keyring` package), and run the command again in a login session that starts it.

The remedy sentence is the one min secret prints. 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-check passes on macOS.
  • The changed code and its test are Linux only, and I did not run just test-cross. The added assertions in the Secret Service test of crates/bep/src/signin.rs are unrun until the Linux lane runs them.

… 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.
@norrietaylor
norrietaylor requested a review from a team as a code owner December 2, 2026 21:28
@coderabbitai
coderabbitai Bot commented Dec 2, 2026
Copy link
Copy Markdown
Contributor

Warning

Review limit reached

  • Run on-demand review

This review includes 1 billable file and costs up to $0.25.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used all 3 included reviews currently available. Your 45 included PR review attempts over the past 7 days set your current allowance at 3 reviews per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: c0981327-b68d-4929-9cbc-0242798e3599
Commits

Reviewing files that changed from the base of the PR and between a0d3eea and 322c018.

Files selected for processing: 1

  • crates/bep/src/signin.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@minimal-foundry
minimal-foundry Bot commented Dec 2, 2026 •
8000 Copy link
Copy Markdown
Contributor

Approved: no findings at 322c01829e47.

Nothing to do.

Clobber: none seen.

@minimal-foundry minimal-foundry Bot left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minimal-review — approved

Verdict APPROVE — No findings.

Panel: 3 of 3 personas ran (correctness, security, supply-chain).

@minimal-foundry minimal-foundry Bot added the review:approved minimal-review approved the current head label Dec 2, 2026
@norrietaylor
Copy link
Copy Markdown
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review:approved minimal-review approved the current head

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0