← Back to issue list

snapcraft validate and sign-build are inconsistent when there are multiple keys

View original Launchpad issue

Metadata

Project
snapcraft
Number
#1636979
Type
issue
State
open
Author
~elopio
Labels
store
Created
2016-10-26 20:01:20.528647+00:00
Updated
2016-10-26 20:01:28.012500+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

When there are multiple signing keys, snapcraft sign-build shows a wizard-like text and lets you enter a number to select the key you want. snapcraft validate instead uses the default key. I'm not sure what's the right behaviour, but they should be consistent. $ snapcraft list-keys Name SHA3-384 fingerprint * default pvqbQVTvSgeMIuUXyr0d_4O_DLQNUDitvmficJ66KYcn_qZKDZcBT6XbgRm7Dcwb * test 5bsceVZqUkv01S4PxD10guWHQqvCNS7Mwv-I_U089NbcLhC-hnQ78zMGQGr9IZFN $ snapcraft validate u1test20161026 ubuntu-core=4 Getting details for ubuntu-core Signing validation ubuntu-core=4 You need a passphrase to unlock the secret key for user: "default" 4096-bit RSA key, ID D017FEB3, created 2016-01-01 $ snapcraft sign-build *.snap Select a key: Number Name SHA3-384 fingerprint 1 default pvqbQVTvSgeMIuUXyr0d_4O_DLQNUDitvmficJ66KYcn_qZKDZcBT6XbgRm7Dcwb 2 test 5bsceVZqUkv01S4PxD10guWHQqvCNS7Mwv-I_U089NbcLhC-hnQ78zMGQGr9IZFN Key number: 1 You need a passphrase to unlock the secret key for user: "default" 4096-bit RSA key, ID D017FEB3, created 2016-01-01

Evaluation history

No evaluation history available.