← Back to issue list

Snapcraft request user to login even if the user is logged in

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1782636
Type
issue
State
open
Author
~nataliabidart
Labels
Created
Updated
Closed

Current evaluation

2017 report that snapcraft register-key re-prompts for Ubuntu One login right after a successful snapcraft login; reporter suggests a clearer message. No labels, 0 comments, no maintainer activity for ~8 years; codebase since fully rewritten.

Suggested action: close stale

Reason: The issue is 2965 days old with 0 comments, no labels, and no maintainer interaction, and it describes the legacy Ubuntu One SSO flow from the snapcraft 2.x era. The current repo has a completely rewritten store client (snapcraft/store/), so the original re-prompt behavior no longer applies; a near-identical Launchpad bug (#1634803) is equally dormant. Confidence is moderate because repo tools could not pin a SHA to verify the current register-key code path.

Impact: 20 Quick Win: 14.0 Staleness: 95 Complexity: 30 Confidence: 60 Support Request: 10

Issue body

Hello, Right after logging in with snapcraft (like, 3 minutes after), I created a key and then tried to register it. While I understand some of this calls may call snapd directly, the layer in snapcraft calling snapd could detect this and present a different message to the user, something along the lines of "despite your are already logged in, we need some extra permissions to change the keys registered to your account so please login again". The sequence that triggered this was: nessita@miro:~$ snapcraft logout Credentials cleared. nessita@miro:~$ snapcraft login Enter your Ubuntu One e-mail address and password. If you do not have an Ubuntu One account, you can create one at https://dashboard.snapcraft.io/openid/login Email: <email address hidden> Password: Second-factor auth: ****** Login successful. nessita@miro:~$ snapcraft list-keys No keys have been registered. See 'snapcraft register-key --help' to register a key. nessita@miro:~$ snapcraft create-key brand-store-fake Passphrase: Confirm passphrase: nessita@miro:~$ snapcraft register-key brand-store-fake Enter your Ubuntu One e-mail address and password. If you do not have an Ubuntu One account, you can create one at https://dashboard.snapcraft.io/openid/login Email: ^C Aborted! nessita@miro:~$ snapcraft whoami email: <email address hidden> developer-id: AfdTtIZrrGjK2D0xQgvZmGJiVIt6Y3cd nessita@miro:~$ snapcraft register-key brand-store-fake Enter your Ubuntu One e-mail address and password. If you do not have an Ubuntu One account, you can create one at https://dashboard.snapcraft.io/openid/login Email: <email address hidden> Password: Second-factor auth: ****** Registering key ... Done. The key "brand-store-fake" (X1aE18wqvwQffMc37yaduXBqrIuRS_nYv8x8_9W-nTEtVE_m__T4Y94gVqqD9O5F) may be used to sign your assertions.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 20
Quick Win: 14.0
Staleness: 95
Complexity: 30
Confidence: 60
Support Request: 10
close stale 2017 report that snapcraft register-key re-prompts for Ubuntu One login right after a successful snapcraft login; reporter suggests a clearer message. No labels, 0 comments, no maintainer activity for ~8 years; codebase since fully rewritten.
qwen/qwen3.6-35b-a3b
Staleness: 100
Complexity: 15
Confidence: 95
Support Request: 10
close stale Snapcraft prompts for login again immediately after successful login when registering a key. The report is 8 years old, unlabelled, and has no maintainer activity.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 90
Support Request: 10
close stale UX bug where snapcraft prompts for login during key registration despite a recent successful login. No maintainer interaction, labels, or comments. Over 8 years old.
qwen3.6-35b-a3b-mtp-q6
Staleness: 100
Complexity: 15
Confidence: 90
Support Request: 10
close stale Snapcraft prompts for login credentials during key registration despite a recent successful login. Issue remains untriaged and completely inactive for over 8 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 35
Confidence: 90
Support Request: 10
close stale Snapcraft prompts for login credentials immediately after a successful login and session verification, suggesting improved session state handling or clearer messaging.

Update history

No update history recorded yet.

Related work

  • Duplicate Of: snapcraft (launchpad)#1634803 (confidence 75%)

    Same symptom: register-key re-prompts for U1 SSO credentials immediately after a successful snapcraft login; both are ~8-10 years old with no maintainer activity.

Related issues

Issue Project State Summary Similarity
#1634803 snapcraft register-key doesn't use U1 SSO login credentials snapcraft (launchpad) open register-key re-prompts for U1 SSO credentials even after a successful snapcraft login, tested on snapcraft 2.19. ~10 years old, unlabelled, 0 comments, no maintainer activity; a near-identical Launchpad bug is also open.
79%
#1714916 snapcraft login should check namespace status snapcraft (launchpad) open 2017 request for snapcraft login to check namespace status and show a useful error instead of 'Unexpected error when obtaining your account information.' No labels, no comments, no activity for ~9 years.
72%