github / github/copilot-cli

Ubuntu keychain support is broken

Ouverte
#2,165 3 commentaires 21 réactions 0 personnes assignées Voir sur GitHub
area:authentication area:platform-linux
Langage dominant
Shell
Étoiles
11.2k
Forks
1.9k
Merge moyen
14 h 16 min
PR mergées (30 j)
6

Description

### 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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.