distribution/registry
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 registry/api/errcode: split Register to internal / exported 2023-09-04 18:03:00 +02:00
auth reg/auth: remove contexts from Authorized method 2023-10-27 10:58:37 -04:00
handlers reg/auth: remove contexts from Authorized method 2023-10-27 10:58:37 -04:00
listener Improve socket-activation message 2023-09-20 10:31:02 -07:00
middleware Merge pull request #2752 from davidswu/registry-driver-middleware 2023-06-21 10:06:13 -07:00
proxy Move context package internal 2023-10-27 10:58:37 -04:00
storage Extract request utilities into its own package 2023-10-27 10:58:37 -04:00
doc.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
registry.go Move context package internal 2023-10-27 10:58:37 -04:00
registry_test.go Move context package internal 2023-10-27 10:58:37 -04:00
root.go Move context package internal 2023-10-27 10:58:37 -04:00