~akimovolvl/launchpad:db-devel

Last commit made on 2022-04-25
Get this branch:
git clone -b db-devel https://git.launchpad.net/~akimovolvl/launchpad
Only Oleg Akimov can upload to this branch. If you are Oleg Akimov please log in for upload directions.

Branch merges

Branch information

Name:
db-devel
Repository:
lp:~akimovolvl/launchpad

Recent commits

2f72f03... by Patch Queue Manager <email address hidden>

Automatic merge from stable up to 6969f83fc573

6969f83... by Colin Watson

Fix git authorization for CI builds in private distributions

Merged from https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/420296

5d9b8fc... by Colin Watson

Fix git authorization for CI builds in private distributions

CI builds in private distributions fail with `fatal: repository
'https://git.launchpad.net/...' not found`. This is because they
authenticate using the special `+launchpad-services` user and a
macaroon, and in that mode methods of `GitAPI` run with an anonymous
principal and are expected to use `removeSecurityProxy` rather than
doing normal security checks (see the comment near the top of
`run_with_login`).

The lookup infrastructure in `lp.code.model.gitlookup` mostly doesn't do
much in the way of permission checks, normally relying on the returned
repository's security adapter to check access grants. However, there
are some exceptions: if the repository is in a source package or an OCI
project inside a private pillar, then the pillar is security-proxied
during traversal and so it implicitly performs permission checks.

Allow passing `check_permissions=False` to the lookup infrastructure to
suppress these checks, and pass this when performing a lookup as
`+launchpad-services`. This is safe because it's only possible to use
that user in conjunction with a macaroon issued for a specific
repository.

8f3390f... by Patch Queue Manager <email address hidden>

Automatic merge from stable up to 1445a2883c2b

1445a28... by Colin Watson

Avoid urllib.parse.splitvalue

Merged from https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/420260

561bec1... by Colin Watson

Simplify SourceForge URL parsing slightly

9c29fe2... by Patch Queue Manager <email address hidden>

Automatic merge from stable up to c7657ba99df3

c7657ba... by Colin Watson

Issue macaroons for private CI builds

Merged from https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/420258

543031d... by Patch Queue Manager <email address hidden>

Automatic merge from stable up to 376ebffc7772

e97d789... by Colin Watson

Avoid urllib.parse.splitvalue

It's deprecated as of Python 3.8.