cannot assemble assertion account-key-request: "name" header contains invalid characters
Bug #1622047 reported by
Leo Arias
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Triaged
|
Wishlist
|
Samuele Pedroni |
Bug Description
I'm trying to register my key using snapcraft register-key, but it fails with the following message:
error: cannot assemble assertion account-
Command '['snap', 'export-key', '--account=
Changed in snapd: | |
assignee: | nobody → Samuele Pedroni (pedronis) |
status: | New → Triaged |
Changed in snapd: | |
importance: | Undecided → Wishlist |
To post a comment you must log in.
Moving this to snapd as I think it's where this would have to be changed; the issue can be reproduced by running the quoted command; in my case: xxxxxxxxxxx 'Loïc Minier <email address hidden>' key-request: "name" header contains invalid characters: "Loïc Minier <email address hidden>"
snap export-key --account=
error: cannot assemble assertion account-
This is matched against a regexp in snapd/asserts/ account_ key.go: MustCompile( `^(?:[a- z0-9]+- ?)*[a-z] (?:-?[a- z0-9])* $`)
var validAccountKeyName = regexp.