Impossible to configure_docker, since container_registry_domains is not stored when --use-keyring is supplied and also not checked
Checklist
-
I'm using the latest version of the extension (Run glab --version)- Extension version: 1.65.0
-
Operating system and version: Fedora 42 -
Gitlab.com or self-managed instance? self-managed instance -
GitLab version (if self-managed) 18.05 -
I have performed glab auth statusto check for authentication issues -
Run the command in debug mode (like DEBUG=true glab mr list) and attach any useful output
Summary
Using glab auth login with --use-keyring does not store the survey answer to supplied container registry domains.
Additionally glab auth status does not check for validity of container registry credentials.
Steps to reproduce
- Login with
glab auth login --use-keyringand provide container registry domains - Try to do
glab auth configure-docker - See the error
What is the current bug behavior?
The error is thrown:
ERROR: no hosts were configured - ensure you've logged in via oauth2 and configured at least one container registry domain for a host
What is the expected correct behavior?
configure_docker succeeds and container registry domains are retained when using the keyring, as without using --use-keyring.
Else the error could also be more understandable, such as "no container registries found in configuration retrieved from keyring/configuration file at path …".