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

Bug #1636979 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

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

Tags: store
Leo Arias (elopio)
tags: added: store
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.