CredentialsUnavailable error when getting credentials from SecretService
Metadata
Current evaluation
Charmcraft store commands failed with CredentialsUnavailable because keyring lookups used the full URL https://api.charmhub.io instead of the bare host api.charmhub.io. Root cause confirmed by reporter; current code now uses urlparse().netloc for keyring host references, so the mismatch appears fixed.
Suggested action: close stale
Reason: The reporter (a maintainer) confirmed the root cause: the keyring lookup used the full URL 'https://api.charmhub.io' instead of the bare domain. The current codebase already uses urlparse(base_url).netloc for the keyring host in base_client.py, publisher/_publishergw.py, and login/_ubuntuone.py, so the reported mismatch is no longer reproducible in current code.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
50
Quick Win:
35.0
Staleness:
75
Complexity:
30
Confidence:
85
Support Request:
0
|
close stale | Charmcraft store commands failed with CredentialsUnavailable because keyring lookups used the full URL https://api.charmhub.io instead of the bare host api.charmhub.io. Root cause confirmed by reporter; current code now uses urlparse().netloc for keyring host references, so the mismatch appears fixed. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
85
Complexity:
20
Confidence:
80
Support Request:
5
|
needs triage | Bug where credential lookup fails because the host string includes the https:// scheme instead of just the domain name, causing a CredentialsUnavailable error. Currently unlabelled and inactive for over a year. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
85
Complexity:
15
Confidence:
70
Support Request:
0
|
keep open | Bug where charmcraft queries the keyring using 'https://api.charmhub.io' instead of the domain, causing credential lookup failures. Root cause identified by maintainer. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
75
Complexity:
20
Confidence:
85
Support Request:
0
|
keep open | Charmcraft fails to retrieve SecretService credentials due to a hostname mismatch, searching for the full URL instead of just the domain. Maintainer confirmed the cause and proposed host validation. Issue is open and awaiting a fix. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
craft-store#44
(confidence 80%)
PR #44 (commit 12b7ead 'store client: use netloc to reference keyring location') switched keyring host references to urlparse(base_url).netloc, matching the fix the reporter described.
Related issues
No related issues found above the similarity threshold.