Container image virtual registry: handle file request service
🥅 Goal
This issue is for the handle request service that will be called in the container images virtual registry.
The main goal of that service is to execute this logic:
- Is this requested file present in cache?
- Yes. Use the file referenced by the cache entry and return it.
- No. Use the upstream service to locate which upstream has the requested file and return a service response with workhorse instructions to use the dependency proxy logic on that url.
- This requires #549104 (closed).
This service should mirror this service.
Other aspects that this service should handle:
- user permissions. If possible cache them.
- the cache validity period. In the
Yesbranch, if we're outside the cache validity period, we need to check with the related upstream (HEAD request) to make sure that the file in cache and on the upstream is the same.
Note: Internal event tracking will be added in #577685 (closed)
🔮 Other considerations
Take this opportunity to centralize the logic, functions or aspects with the Maven virtual registry objects.
🛠️ Implementation plan
- Container image virtual registry: database models (#548783 - closed) • Adie (she/her), Radamanthus Batnag • 18.5 • Needs attention
- Container image virtual registry: cache entry s... (#549103 - closed) • Radamanthus Batnag • 18.5 • On track
- Container image virtual registry: upstream serv... (#549104 - closed) • Adie (she/her) • 18.4
-
Container image virtual registry: handle file r... (#549134 - closed) • Adie (she/her) • 18.6
👈 - Container image virtual registry: manage APIs (... (#548794 - closed) • Adie (she/her) • 18.5 • On track
- Container image virtual registry: push/pull end... (#549131) • Radamanthus Batnag • 18.8 • On track
- Container image virtual registry: performance r... (#549136) • Unassigned • Backlog
- Container image virtual registry: documentation... (#549138 - closed) • Adie (she/her) • 18.6
- Container image virtual registry: additional fe... (#549470) • Unassigned • Backlog
Edited by Adie (she/her)