Snap download does not work with snapcraft 7 credentials?

The usual approach to using snap download with a brand store is use snapcraft export-login --acls package_access store.auth and the use UBUNTU_STORE_ID=<storeid> UBUNTU_STORE_AUTH_DATA_FILENAME=./store.auth snap download <snap_name_from_brand_store>.

However, when I do this with credentials generated with Snapcraft 7, I get a message `error: cannot decode auth file : invalid character ‘e’ looking for beginning of value.

I think Snapcraft 7 introduced a new authentication method using craft store rather than a macaroon which is seems snap download still needs? Is there any way to make this work?


Thanks @ogra. I just realized that this will probably also break ubuntu-image as well.

For the snapd team, is the Snapcraft 7 credential support something that is being addressed soon? Or if we have devices running Ubuntu Core and/or need snap download, should we be sticking with Snapcraft 6.x (6.x/stable channel)?

i know it is on their roadmap, but no idea about priorities …

same goes for ubuntu-image btw:

we plan to address it between 2.57 and 2.58, as it might be fixed in a 2.57.x or 2.58