Skip to content

Ubuntu keychain support is broken #2165

@AndreaPi

Description

@AndreaPi

Describe the bug

There are two bugs:

  1. the documentation https://docs.github.com/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/troubleshoot-copilot-cli-auth#keychain-access-failure is wrong. Under Ubuntu (see below for version), If secret-tool is not installed, running sudo apt install libsecret-1-0 gnome-keyring seahorse doesn't install it. You also need to run sudo apt install libsecret-tools (please fix the docs)
  2. Once secret-tool is correctly installed, as confirmed by command -v secret-tool, Copilot-CLI still fails to find secret-tool and use it. I tried to log out of my SSH connection to Ubuntu, log in again and try again: didn't help

Affected version

GitHub Copilot CLI 1.0.9

Steps to reproduce the behavior

  1. Make sure secret-tool is installed, by running command -v secret-tool:
  2. start Copilot CLI by running copilot
  3. login with /login (in my case, this requires quite a few clicks since I use the SSO login of my organization)
  4. Copilot CLI complains that The system vault (keychain, keyring, password manager, etc.) is not available. You may need to install one. So it actually doesn't see secret-tool. Please fix

Expected behavior

When secret-tool is installed and I run copilot, then /login, Copilot CLI should be able to see secret-tool and safely store my token in the keychain, instead of prompting me to accept the risk and store the token in the plain text config file instead

Additional context

Linux version:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.1 LTS
Release:        24.04
Codename:       noble

I'm connecting to Ubuntu from Windows via SSH with the Windows Terminal. The remote Ubuntu server is a headless server, but I would expect a key manager to work (once installed) regardless of that

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions