Refresh snaps with needed credentials

2_31

#1

In 2.30 we started tracking for each snap the userID of the installing user, snap refresh foo will also set this for a snap that didn’t have yet the information.

The plan now is to use that information to refresh snaps in groups with the credentials of their installing users.

This work addresses: https://bugs.launchpad.net/snapd/+bug/1733910


Automatic refresh of private snaps
#2

started proposing:

which also adds a few spread specific about private snaps. There is still some work needed there to turn them on.


#3

code for this has now landed (will be in 2.31), in the end we don’t group but query for all snaps for all users (to make a best effort to respect validation with the current APIs)