← Back to issue list

snapcraft list-keys with no snap keys returns an empty table

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1736864
Type
issue
State
closed
Author
~elopio
Labels
—
Created
Updated
Closed

Current evaluation

Fixed via merged canonical/snapcraft#1784 (commit 5c76509ff): list-keys now shows registration guidance instead of an empty table when no keys exist.

Resolution: closed resolved

Reason: The item was closed after canonical/snapcraft#1784 was merged as commit 5c76509ff. That change directs users to register-key help when list-keys finds no keys.

Evaluated by: mr-cal-bot

No scores available.

Issue body

This is similar to https://bugs.launchpad.net/snapcraft/+bug/1720210 My account, according to the store has 5 keys. ( This is are the keys returned by store.get_account_information()['account_keys'] ). However, when I run snap keys, it returns no keys: $ snap keys --json [] In this scenario, when I run snapcraft keys, I get an empty table: $ snapcraft keys Name SHA3-384 fingerprint Instead of reporting an empty table, it should return a nice message saying that no keys are registered. Maybe explaining how to register one.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed via merged canonical/snapcraft#1784 (commit 5c76509ff): list-keys now shows registration guidance instead of an empty table when no keys exist.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR #1784 (commit 5c76509ff): list-keys now points users to register-key --help when no keys are registered, instead of printing an empty table.
qwen/qwen3.6-35b-a3b — — Fixed via PR #1784. The command now displays a helpful message instead of an empty table when no local keys are registered, resolving the reported UX issue.
qwen/qwen3.8-27b
Impact: 20
Quick Win: 17
Staleness: 90
Complexity: 15
Confidence: 85
Support Request: 10
close stale snapcraft list-keys prints an empty table instead of a helpful message when no keys are registered. Issue is ~8.7 years old with zero activity, but the fix was merged in PR #1784, which replaced the empty table with a helpful message pointing to register-key --help.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 90
Support Request: 10
close stale snapcraft keys command displays an empty table instead of a helpful message when no keys are registered. Unaddressed for ~8.5 years with no maintainer interaction.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 90
Support Request: 10
close stale snapcraft keys displays an empty table instead of a helpful message when no snap keys are registered. Untriaged and inactive for over 8 years, likely superseded by modern CLI design.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 15
Confidence: 85
Support Request: 10
close stale snapcraft keys displays an empty table instead of a helpful message when no keys are registered. The issue is over eight years old with no maintainer response or labels.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#1784 (confidence 100%)

    Merged PR 1784, commit 5c76509ff, implements the no-keys guidance.

  • Related To: snapcraft (launchpad)#1720210 (confidence 95%)

    The issue cites this as a similar no-keys list-keys report; the discussion distinguishes the no-local-key case.

Related issues

Issue Project State Summary Similarity
#1720210 snapcraft list-keys with no keys returns an empty table snapcraft (launchpad) closed Empty-key output was fixed by PR #4245 (commit 1c44a58fc): keys now reports that no keys are registered and points users to register-key help.
87%
#1622037 snapcraft list-keys prints no message when there are no keys snapcraft (launchpad) closed UX request: `snapcraft list-keys` printed an empty table with no message when no keys existed. Fixed in canonical/snapcraft#1784 (5c76509ff); the command is now also a removed alias for `keys`.
84%
#1784 cli: show helpful message for 'snapcraft list-keys' with no keys snapcraft merged Merged PR #1784 (commit 5c76509ff): snapcraft list-keys now directs users to register-key --help when no keys exist instead of printing an empty table.
83%
#1858994 snapcraft list-keys doesn't show the non-registered key when no key is registered snapcraft (launchpad) open list-keys hid local unregistered keys when no key was registered (snapcraft 3.8). Fixed by 1c44a58fc; today's 'keys' command lists local keys and marks unregistered ones, and list-keys was removed in Snapcraft 9.
80%
#1720207 snapcraft list-keys returns no keys, but the user has keys snapcraft (launchpad) open Observed behavior is resolved: keys now displays registered remote-only key fingerprints separately from local keys; legacy list-keys was renamed and removed in Snapcraft 9.
77%
#1996618 Snapcraft does not list keys reported from snapd via External Key Manager snapcraft (launchpad) open Legacy `snapcraft list-keys` hid keys returned by snapd/External Key Manager when the account had no registered keys; superseded by the craft-app `keys` command and Snapcraft 9 removal of list-keys.
73%
#786 Add `snapcraft list-keys` snapcraft merged Merged #786 as 233adda3a, adding snapcraft list-keys to display keys registered to the user's Store account alongside local key data.
72%