distribution/registry/handlers
Cory Snider bd80d7590d reg/auth: remove contexts from Authorized method
The details of how request-scoped information is propagated through the
registry server app should be left as private implementation details so
they can be changed without fear of breaking compatibility with
third-party code which imports the distribution module. The
AccessController interface unnecessarily bakes into the public API
details of how authorization grants are propagated through request
contexts. In practice the only values the in-tree authorizers attach to
the request contexts are the UserInfo and Resources for the request.
Change the AccessController interface to return the UserInfo and
Resources directly to allow us to change how request contexts are used
within the app without altering the AccessController interface contract.

Signed-off-by: Cory Snider <csnider@mirantis.com>
2023-10-27 10:58:37 -04:00
..
api_test.go Merge pull request #4040 from thaJeztah/move_api_errors 2023-09-15 09:36:36 +01:00
app.go reg/auth: remove contexts from Authorized method 2023-10-27 10:58:37 -04:00
app_test.go Move context package internal 2023-10-27 10:58:37 -04:00
basicauth.go remove go build directive for older go version 2023-09-26 15:14:57 +08:00
blob.go Move context package internal 2023-10-27 10:58:37 -04:00
blobupload.go Move context package internal 2023-10-27 10:58:37 -04:00
catalog.go registry/api: move all errors to "errcode" package 2023-09-04 18:02:54 +02:00
context.go Move context package internal 2023-10-27 10:58:37 -04:00
health_test.go Move context package internal 2023-10-27 10:58:37 -04:00
helpers.go Move context package internal 2023-10-27 10:58:37 -04:00
hmac.go handlers: provide better log message on mismatched secret 2016-09-02 15:24:35 -07:00
hmac_test.go registry/handlers: use consistent names for test-tables 2023-05-09 14:00:17 +02:00
hooks.go replace strings.Split(N) for strings.Cut() or alternatives 2022-11-10 22:38:12 +01:00
mail.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
manifests.go Move context package internal 2023-10-27 10:58:37 -04:00
tags.go Do not close HTTP request body in HTTP handler 2023-09-22 16:21:54 +01:00