Creating a key with no encryption is annoying
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
summary: |
- Create a key with no encryption is annoying + Creating a key with no encryption is annoying |
description: | updated |
description: | updated |
Changed in snapd: | |
status: | New → Confirmed |
importance: | Undecided → Low |
It really looks like you've got some extra `askpass` configuration that we're picking up somehow. I'd like to know more :-)