Allow toggling redirects to storage backends on a per-repository basis
Context
There have been some inquires about the possibility of disabling redirects to storage backends for image pulls. For security reasons, some customers would prefer to receive images directly from our registry instead of being redirected to the storage backend (e.g. GCS or S3).
Problem
Currently, the redirect feature is a global feature, which means that we can only enable or disable it for all repositories in the registry, which has a significant impact on the infrastructure due to the increased network traffic.
Solution
Once the metadata database is in place (following &2313 (closed)), we should be able to add a configurable redirect
flag to each repository, enabling admins to toggle this feature for specific repositories.