Creating a key with no encryption is annoying

Bug #1815219 reported by Kyle Fazzari
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Confirmed
Low
Unassigned

Bug Description

So I want to create a serial key, meant for the serial vault. This key must have no password. Normally I'd run `snapcraft create-key`, but that just calls `snap create-key`, which looks like this:

$ snap create-key serial
Passphrase: # I pressed enter here
Confirm passphrase: # And enter here

And instead of just creating a key with no passphrase, it actually popped up a graphical dialog box asking for passphrases again. I again didn't provide any passphrase, and then the dialog asked me to confirm that I actually wanted to create an unprotected key.

Can that workflow be a bit better? This doesn't happen when a passphrase IS provided, so snapd may need logic to determine if no password was provided in which case perhaps an extra flag may need to be passed onto gpg.

$ snap version
snap 2.37.1.1+18.04
snapd 2.37.1.1+18.04
series 16
ubuntu 18.04
kernel 4.15.0-45-generic

Kyle Fazzari (kyrofa)
summary: - Create a key with no encryption is annoying
+ Creating a key with no encryption is annoying
description: updated
description: updated
Revision history for this message
John Lenton (chipaca) wrote :

It really looks like you've got some extra `askpass` configuration that we're picking up somehow. I'd like to know more :-)

Revision history for this message
Ian Johnson (anonymouse67) wrote :

I see this as well on ubuntu 18.04.2 with snap version:

snap 2.39.2+git1352.4951e79~ubuntu16.04.1
snapd 2.39.2+git1352.4951e79~ubuntu16.04.1
series 16
ubuntu 18.04
kernel 4.15.0-52-generic

Zygmunt Krynicki (zyga)
Changed in snapd:
status: New → Confirmed
importance: Undecided → Low
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.