Implement `snapcraft create-key`
Metadata
Current evaluation
Implemented `snapcraft create-key` wrapping `snap create-key`, with early errors for existing local/store keys. Merged as snapcore/snapcraft PR #824 (commit 01d512e65); maintainer closed the Launchpad bug pointing at that PR.
Resolution: closed resolved
Reason: The feature landed via commit 01d512e65 "Add `snapcraft create-key` (#824)", the PR linked in the sole maintainer comment; StoreCreateKeyCommand in snapcraft/commands/keys.py calls `snap create-key` and raises KeyAlreadyExistsError/KeyAlreadyRegisteredError, and it was later refactored in #6141.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Implemented `snapcraft create-key` wrapping `snap create-key`, with early errors for existing local/store keys. Merged as snapcore/snapcraft PR #824 (commit 01d512e65); maintainer closed the Launchpad bug pointing at that PR. | |
| stealth/space-bunny-alpha | — | closed resolved | Implemented snapcraft create-key via merged PR #824 (commit 01d512e65), wrapping snap create-key and rejecting names already registered with the store. | |
| stealth/space-bunny-alpha | — | closed resolved | Implemented in merged PR #824 (commit 01d512e65): snapcraft create-key now wraps snap create-key and rejects keys already registered with the store. | |
| stealth/space-bunny-alpha | — | closed resolved | Implemented by merged PR canonical/snapcraft#824 (commit 01d512e65), wrapping `snap create-key` and rejecting names already registered with the store. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned and closed without comments or resolution. The requested snapcraft create-key wrapper and duplicate key validation were never implemented. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation. The proposed snapcraft create-key wrapper with duplicate key validation was abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | Implemented and closed. Wraps snap create-key to unify the key creation workflow and adds validation to prevent duplicate key registrations with the store. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without implementation. The feature was abandoned or superseded by upstream changes. No pull request or merge details were provided. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcraft#824
(confidence 95%)
PR referenced by the maintainer comment; commit 01d512e65 'Add `snapcraft create-key` (#824)' implements the command.
-
Related To:
snapcraft#3844
(confidence 70%)
Commit ef3318398 'cli: add KeyAlreadyExists error (#3844)' adds the error raised when a key of the same name already exists.
-
Related To:
snapcraft#6141
(confidence 55%)
Commit a1a0fb103 'refactor: migrate create-key command (#6141)' moves the command to the craft-parts based CLI; command later marked removed.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #824 Add `snapcraft create-key` | snapcraft | merged | Merged #824 in commit 01d512e65, adding `snapcraft create-key` to wrap `snap create-key` and reject names already registered with the store. | |
| #1979907 snapcraft create-key incorrect error message | snapcraft (launchpad) | closed | Fixed by canonical/snapcraft#3844 (commit ef3318398), which distinguishes an existing local key from a registered key; released in Snapcraft 7.1.1 on stable. | |
| #1621895 Implement `snapcraft list-keys` | snapcraft (launchpad) | closed | snapcraft list-keys was implemented by merged PR snapcore/snapcraft#786 in commit 233adda3a, showing store-account keys alongside local key data. | |
| #6141 refactor: migrate create-key command | snapcraft | merged | Merged the create-key command migration from snapcraft_legacy in squash commit a1a0fb103, adding the command to the new Snapcraft command framework. |