← 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

Snapcraft 7.4.3 failed to infer Candid credentials from export-login; Candid authentication has since been removed, making the requested auto-detection obsolete.

Suggested action: close stale

Reason: Commit 0beb18c4f (snapcraft#6288) removed Candid login, and current store/client.py explicitly rejects Candid credentials and SNAPCRAFT_STORE_AUTH=candid; commit 7ed8b939e (snapcraft#6417) reinforced that behavior. The Snapcraft 7.4.3 failure is therefore obsolete because the affected authentication subsystem has been retired.

Evaluated by: mr-cal-bot

Impact: 35 Quick Win: 2 Complexity: 65 Confidence: 99 Actionability: 15

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
stealth/space-bunny-alpha
Impact: 35
Quick Win: 2
Complexity: 65
Confidence: 99
Actionability: 15
close stale Snapcraft 7.4.3 failed to infer Candid credentials from export-login; Candid authentication has since been removed, making the requested auto-detection obsolete.
qwen/qwen3.6-35b-a3b
Impact: 0
Quick Win: 0
Complexity: 0
Confidence: 100
Actionability: 100
close resolved Snapcraft 9.0 removed Candid authentication support (PR #6288). The SNAPCRAFT_STORE_AUTH=candid variable is no longer supported, and the code now explicitly errors if detected, directing users to use snapcraft export-login or SNAPCRAFT_STORE_CREDENTIALS instead.
qwen/qwen3.8-27b
Impact: 10
Quick Win: 7
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.

Update history

No update history recorded yet.

Related work

  • Superseded By: snapcraft#6288 (confidence 99%)

    Commit 0beb18c4f removed Candid login, superseding the requested credential autodetection.

  • Related To: snapcraft#6417 (confidence 99%)

    Commit 7ed8b939e added explicit errors for Candid credentials and the Candid authentication environment setting.

Related issues

No related issues found above the similarity threshold.