Registry phase 2 migration: Update /jwt/auth
Context
The context for this issue can be viewed in the epic &7316 (closed) and the breakdown of work can be viewed in this comment &7316 (comment 792633854).
Update endpoint: /jwt/auth
- Update the endpoint to reject JWT token requests for scopes
push,deleteor*if the container repository is inmigration_state: :importing
Add import resource name to Auth service
See this thread for more details about the new scope.
- Add a new resource name
importforregistryresource access tokens to theContainerRegistryAuthenticationService - Add a class method
import_access_tokenthat grants the import access similar to thefull_access_token
Edited by Steve Abrams