diff --git a/debian/changelog b/debian/changelog index fee6d3e..0ee627c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +snapd-extra-utils (1.0.2ubuntu1) UNRELEASED; urgency=medium + + * In snapd-seed-glue, remove redundant decoding/encoding for account key. + + -- Simon Quigley Sat, 23 Nov 2024 21:05:07 -0600 + snapd-extra-utils (1.0.2) plucky; urgency=medium * Fix edge cases where the snap revision may be older in the target channel diff --git a/snapd-seed-glue/validation.go b/snapd-seed-glue/validation.go index f4d582e..84f960f 100644 --- a/snapd-seed-glue/validation.go +++ b/snapd-seed-glue/validation.go @@ -62,12 +62,7 @@ func ensureAssertions(assertionsDir string) { if signKeySha3 == "" { log.Fatalf("Failed to extract sign-key-sha3-384 from model assertion.") } - decodedSignKey, err := base64.StdEncoding.DecodeString(signKeySha3) - if err != nil { - log.Fatalf("Failed to decode sign-key-sha3-384: %v", err) - } - encodedSignKey := base64.StdEncoding.EncodeToString(decodedSignKey) - output, err := exec.Command("snap", "known", "--remote", "account-key", "public-key-sha3-384="+encodedSignKey).CombinedOutput() + output, err := exec.Command("snap", "known", "--remote", "account-key", "public-key-sha3-384="+signKeySha3).CombinedOutput() if err != nil { log.Fatalf("Failed to fetch account-key assertion: %v, Output: %s", err, string(output)) }