Add `snapcraft create-key`
Metadata
Current evaluation
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.
Suggested action: —
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 |
|---|---|---|---|---|
| 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. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Adds snapcraft create-key to unify key creation and registration, preventing UX confusion between snap create-key and snapcraft register-key. Includes duplicate name validation and minor UX tweaks after review. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #726 Implement basic form of `snapcraft register-key` | snapcraft | merged | Merged implementation of the snapcraft register-key command. Code was refactored to align with updated snap key management interfaces, CI failures were resolved, and tolerance was added for snapd output quirks. The feature is now integrated. | |
| #786 Add `snapcraft list-keys` | snapcraft | merged | Merged changes adding the snapcraft list-keys command to show store-registered keys. The author promptly resolved an initial CI test failure, reviewers approved the update, and the branch was merged. | |
| #3844 cli: add KeyAlreadyExists error | snapcraft | merged | Merged to release/7.1. Introduces a KeyAlreadyExists error for snapcraft create-key when generating an existing key, plus unit tests. Approved and passed CI. | |
| #1784 cli: show helpful message for 'snapcraft list-keys' with no keys | snapcraft | merged | Merged fix replacing the empty table output of snapcraft list-keys with a helpful message directing users to register-key --help. Added a unit test mocking an empty key list. Approved and merged after reviewer guidance on test implementation. |