~ethan.hsieh/+git/snapd:2.57.2

Last commit made on 2022-09-28
Get this branch:
git clone -b 2.57.2 https://git.launchpad.net/~ethan.hsieh/+git/snapd
Only ethan.hsieh can upload to this branch. If you are ethan.hsieh please log in for upload directions.

Branch merges

Branch information

Name:
2.57.2
Repository:
lp:~ethan.hsieh/+git/snapd

Recent commits

2d421f4... by ethan.hsieh

debug

d2e3b0c... by Michael Vogt

release: 2.57.2 (#12105)

33ef7fc... by Samuele Pedroni

store/tooling,tests: support UBUNTU_STORE_URL override env var

a2c758f... by Samuele Pedroni

tests: check snap download with snapcraft v7+ export-login auth data (#12084)

* tests: check snap download with snapcraft v7+ export-login auth data

* tests: exclude ubuntu-18.04-32 as there is no i386 version of snapcraft available anymore

* tests: reduce further where we run this

Co-authored-by: Michael Vogt <email address hidden>

6265a6f... by Samuele Pedroni

store/tooling: support using snapcraft v7+ base64-encoded auth data (#12065)

including the simple credentials cases

this also starts supporting UBUNTU_STORE_AUTH taking diretcly the auth data instead of a filename.

to achieve this, we:

reorg ToolingStore auth code
fully allow for implicit user cred authorizing in store
have the ToolingStore use and pass an Authorizer

* store/tooling: splitting out auth.go code before flexibility changes

* store: fully allow for implicit user cred authorizing

we want to support doing user authorizing fully inside an Authorizer
while passing user == nil around, if it makes sense

* store/tooling: start generalizing auth data parsing code

* store/tooling: have the ToolingStore use and pass an Authorizer

this switches the ToolingStore approach to use an Authorizer
set on the underlying Store config, this should allow to also
support simpler creds of the form auth scheme/auth value

no explict auth.UserState and DeviceAndAuthContext are passed anymore
to the underlying Store

* store/tooling: support using snapcraft v7+ base64-encoded auth data

including the simple credentials cases

this also starts supporting UBUNTU_STORE_AUTH taking diretcly the auth
data instead of a filename.

* store,store/tooling: rename and clarify HasAuth => CanAuthorizeForUser

5bba2d9... by Samuele Pedroni

many: progress bars should use the overridable stdouts (#12047)

making progress bars should take a stdout io.Writer

ToolingStore should carry an overridable stdout

make sure in image, preseed and cmd/snap code the overridable
top-level Stdout is passed along to make progress bars

76845e0... by Samuele Pedroni

many: refactor store code to be able to use simpler form of auth creds (#12057)

this introduces an Authorizer interface, that can be used by the store
to authorize requests and is passed to it via config optionally.

* store: preparations, auth.go type definitions

* many: refactor store code to be able to use simpler form of auth creds

* store: some clarifications in the refactored autho code

thanks @mardy

805f52c... by Samuele Pedroni

snap,store: drop support/consideration for anonymous download urls (#12056)

v2 store APIs never provided them

v1 has for a long time returned the same value for both kind of URLs

a0e4a3f... by Ondrej Kubik

data: include snapd/mounts in preseeded blob

When collecting preseeded data, include also snapd/mounts.
This directory contains layout info and is essential to have
a correct layout functionality on preseeded system.

Signed-off-by: Ondrej Kubik <email address hidden>

0846467... by Alex Murray

many: Set SNAPD_APPARMOR_REEXEC=1

Re-exec support for snapd-apparmor was implemented in #11129.

Signed-off-by: Alex Murray <email address hidden>