Created by Colin Watson on 2019-07-01 and last modified on 2019-07-01
Get this branch:
bzr branch lp:~cjwatson/launchpad/better-security-adapter-caching
Only Colin Watson can upload to this branch. If you are Colin Watson please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Colin Watson
Launchpad itself

Recent revisions

18992. By Colin Watson on 2019-07-01

Improve caching of several delegated authorization checks.

forwardCheckAuthenticated and forwardCheckUnauthenticated don't
currently have access to the cache used by iter_authorization when doing
delegated authorization checks. In several cases, this is the only
thing called by checkAuthenticated/checkUnauthenticated, and in that
situation a simpler syntax is available: we can just yield the object
and permission to check, and iter_authorization will do the delegated
check for us. This makes a significant difference when operating on
many publishing objects in a single private archive: in the
archive.getPublishedBinaries webservice method, about two-thirds of the
non-trivial archive visibility checks that were previously uncached are
now cached.

I think it's possible to do better, but it would require giving security
adapters access to iter_authorization's cache so that forwardCheck* can
use it when doing delegated checks, which is a somewhat more involved

18991. By Launchpad PQM Bot on 2019-06-21

[r=cjwatson][no-qa] Upgrade loggerhead to r493.

18990. By Launchpad PQM Bot on 2019-06-21

[r=cjwatson][no-qa] Manual Review should not fail the upload job

18989. By Launchpad PQM Bot on 2019-06-20

[r=twom][no-qa] Log lightly-redacted payloads of scheduled webhook

18988. By Launchpad PQM Bot on 2019-06-19

[r=cjwatson][bug=1684529] Use release intents to release snapbuilds
 to channels after building

18987. By Launchpad PQM Bot on 2019-06-19

[r=cjwatson][bug=1831942] Add u-boot Flat Image Tree signing support.

18986. By Launchpad PQM Bot on 2019-06-18

[testfix][r=cjwatson][no-qa] Go back to using the unique name for

18985. By Launchpad PQM Bot on 2019-06-18

[r=maxiberta][no-qa] Upgrade to difftacular r11.

18984. By Launchpad PQM Bot on 2019-06-18

[r=maxiberta][no-qa] Remove lpreview from sourcedeps.

18983. By Launchpad PQM Bot on 2019-06-14

[r=cjwatson][no-qa] Add built_at to snap upload metadata

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
This branch contains Public information 
Everyone can see this information.