← Back to issue list

Autodetect credentials

View original Github issue

Metadata

Project
snapcraft
Number
#4227
Type
issue
State
open
Author
abitrolly
Labels
Status: Triaged Type: Enhancement
Created
Updated
Closed

Current evaluation

Request to auto-detect candid (OAuth) store credentials without SNAPCRAFT_STORE_AUTH=candid. Candid login was removed in Snapcraft 9.0 (PR #6288), making the request moot; issue inactive since 2023 with only a bot comment.

Suggested action: close stale

Reason: The issue is inactive (last activity 494 days ago, only an autogenerated Jira-sync bot comment) and is no longer applicable: the candid login flow it targets was removed in Snapcraft 9.0 by commit 0beb18c4f (PR #6288), and current code in snapcraft/commands/account.py explicitly rejects SNAPCRAFT_STORE_AUTH=candid as 'no longer supported', so auto-detecting candid credentials is moot.

Impact: 10 Quick Win: 7.0 Staleness: 82 Complexity: 30 Confidence: 85 Support Request: 10

Issue body

### Bug Description `snapcraft` doesn't detect OAuth flow credentials. ``` craft-store error: Credentials could not be parsed. Expected valid Ubuntu One credentials. ``` It should be able to detect which credentials is used without `SNAPCRAFT_STORE_AUTH=candid` explicitly. ### To Reproduce Set `SNAPCRAFT_STORE_AUTH=candid` when `export-login` and then try to use that file for publishing snap. ### Environment `ubuntu-latest. ### snapcraft.yaml ```shell core:22 ``` ### Relevant log output ```shell Run snapcore/action-publish@v1 Publishing snap "snapcrafting/myip/myip_1_amd64.snap"... /snap/bin/snapcraft upload snapcrafting/myip/myip_1_amd64.snap --release stable Starting Snapcraft 7.4.3 Logging execution to '/home/runner/.local/state/snapcraft/log/snapcraft-20230623-043854.750010.log' craft-store error: Credentials could not be parsed. Expected valid Ubuntu One credentials. Full execution log: '/home/runner/.local/state/snapcraft/log/snapcraft-20230623-043854.750010.log' Error: The process '/snap/bin/snapcraft' failed with exit code 1 ``` ### Additional context _No response_

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 10
Quick Win: 7.0
Staleness: 82
Complexity: 30
Confidence: 85
Support Request: 10
close stale Request to auto-detect candid (OAuth) store credentials without SNAPCRAFT_STORE_AUTH=candid. Candid login was removed in Snapcraft 9.0 (PR #6288), making the request moot; issue inactive since 2023 with only a bot comment.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 15
Confidence: 75
Support Request: 5
close stale Enhancement to auto-detect Candid OAuth credentials in snapcraft without explicit environment variables. Triaged but inactive for over a year with no maintainer progress.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 25
Confidence: 75
Support Request: 0
keep open Enhancement request to auto-detect Candid/OAuth credentials in snapcraft without requiring explicit SNAPCRAFT_STORE_AUTH configuration. Currently triaged and awaiting implementation.
qwen3.6-35b-a3b-mtp-q6
Staleness: 80
Complexity: 35
Confidence: 75
Support Request: 15
close stale Enhancement to automatically detect Candid OAuth credentials in snapcraft without requiring the SNAPCRAFT_STORE_AUTH environment variable. Currently triaged with an internal Jira ticket created. Last activity 418 days ago.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft#6288 (confidence 85%)

    PR 'chore(store)!: remove candid login' removed the candid auth flow this enhancement targets, rendering the request obsolete in Snapcraft 9.0.

Related issues

No related issues found above the similarity threshold.