Skip to content

Unnecessarily strict GUI requirement for Secret Service API #2244

@cyqsimon

Description

@cyqsimon

When SSH-ed into a remote host that uses GCM with Secret Service API, authentication fails with this message:

fatal: Cannot use the 'secretservice' credential backing store without a graphical interface present.
See https://aka.ms/gcm/credstores for more information.

The linked docs provides the following justification:

A graphical user interface is required in order to show a secure prompt to request a secret collection be unlocked.

But this does not take into account that maybe the keyring is already unlocked by other means. The user could:

  1. Also have a graphical login separate from the SSH instance.
  2. Or configured the provider to unlock over SSH.

... the first one being my use case.

Indeed running lssecret in the SSH session confirms that the keyring is already unlocked and accessible. That means GCM's refusal to proceed is overly restrictive.

Versions

Arch Linux x86_64
GCM 2.6.1+786ab03440ddc82e807a97c0e540f5247e44cec6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions