1
0
mirror of https://github.com/quay/quay.git synced 2026-01-27 18:42:52 +03:00
Commit Graph

9 Commits

Author SHA1 Message Date
Marcus Kok
4bd036b6c5 storage: add namespace filter to direct download responses (PROJQUAY-8147) (#3363)
* add namespace filter to direct download responses
2024-10-28 13:09:54 -04:00
Syed Ahmed
ec2ee2f98e storage: Add S3 optimization for CloudFlare provider (PROJQUAY-7267) (#2913)
This adds the optimization in CloudFlare where if a request is from the primary region then instead of redirecting to the CDN, we return the S3 URL to save egress cost
2024-06-06 14:13:14 -04:00
Marcus Kok
e28d0837df storage: add repo_name to direct download url parameter (PROJQUAY-7020) (#2826)
add repo_name to direct download url parameter
2024-04-22 10:09:21 -04:00
Syed Ahmed
93c816b2b7 cdn: add namespace and username to CDN redirect for usage calculation (PROJQUAY-5939) (#2616)
* cdn: add namespace and username to CDN redirect for usage calculation (PROJQUAY-5939)

We use the referer header to infer the namespace but that
is not always reliable as some clients don't add that header
when sending the request to the CDN
2024-01-18 10:39:18 -05:00
Syed Ahmed
ad0d979c48 storage: pass S3 region to S3Storage init (PROJQUAY-6375) (#2459)
storage: pass S3 region to S3Storage init (PROJQUAY-6375)

This is needed for correctly signing URLs for CloudFlare
2023-11-07 10:15:11 -05:00
Kenny Lee Sin Cheong
5f63b3a7bb chore: drop deprecated tables and remove unused code (PROJQUAY-522) (#2089)
* chore: drop deprecated tables and remove unused code

* isort imports

* migration: check for table existence before drop
2023-08-25 12:17:24 -04:00
Syed Ahmed
705ea386d2 Add S3 Region to CloudFlare URL (PROJQUAY-3512) (#1630)
This will be used by the CloudFlare worker to redirect
to the correct S3 origin bucket
2022-11-21 11:59:21 -05:00
Syed Ahmed
f4d9dda27d storage: Add **kwargs to get_direct_download_url for CloudFlare storage (PROJQUAY-3512) (#1594)
We are passing extra params like `username` which need to be accepted by
the CloudFlare storage provider
2022-10-25 14:45:25 -04:00
Syed Ahmed
407355691b storage: Add Cloudflare as a CDN provider for an S3 backed storage (PROJQUAY-3699) (#1294)
storage: Add Cloudflare as a CDN provider for an S3 backed storage (PROJQUAY-3699)

This adds CloudFlare as a CDN provider for quay for any storage backed
by S3. This requires a worker script that needs to be setup seperately
on CloudFlare. More details on the worker at
https://github.com/quay/quay-cloudflare-cdn-worker
2022-10-13 10:17:34 -04:00