← Back to issue list

Add `snapcraft create-key`

View original Github issue

Metadata

Project
snapcraft
Number
#824
Type
pull request
State
merged
Author
cjwatson
Labels
—
Created
Updated
Closed

Current evaluation

Merged #824 in commit 01d512e65, adding `snapcraft create-key` to wrap `snap create-key` and reject names already registered with the store.

Resolution: closed resolved

Reason: PR #824 was merged as commit 01d512e65, implementing the command wrapper and guards against existing local or store-registered key names.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Wrapping `snap create-key` means that we don't confuse users by expecting them to use two similar-but-different commands during the key creation and registration workflow. In addition, this augments `snap create-key` by failing if a key with the same name is already registered with the store, since a later registration attempt would fail in that case.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged #824 in commit 01d512e65, adding `snapcraft create-key` to wrap `snap create-key` and reject names already registered with the store.
stealth/space-bunny-alpha — closed resolved PR #824 by cjwatson merged as commit 01d512e65, adding `snapcraft create-key` wrapping `snap create-key`, plus a store lookup that rejects names already registered. Later refactored in a1a0fb103.
stealth/space-bunny-alpha — closed resolved Merged #824 in commit 01d512e65, adding snapcraft create-key to wrap snap create-key and reject names already registered with the store.
qwen/qwen3.6-35b-a3b — — Merged. Adds snapcraft create-key to wrap snap create-key, unifying key creation and registration. Prevents duplicate registration errors and improves UX. Applied reviewer feedback and minor tweaks before merging.
qwen3.6-35b-a3b-mtp-q6 — — Merged the snapcraft create-key command to unify key creation and registration workflows, preventing user confusion. The change includes a duplicate key check and was accepted after minor UX tweaks and reviewer feedback.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1629942 Implement `snapcraft create-key` snapcraft (launchpad) closed 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.
80%
#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.
75%
#1612730 Implement `snapcraft register-key` snapcraft (launchpad) closed Implemented and merged basic `snapcraft register-key` support in snapcraft#726 via commit 35c7cb2a9.
75%
#726 Implement basic form of `snapcraft register-key` snapcraft merged Merged PR #726 as commit 35c7cb2a9, adding basic snapcraft register-key support through snapd's newer key-management interfaces.
72%
#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.
72%