Skip to content

Commit 1a81afc

Browse files
committed
ci: pin Docker Hub R2 buckets instead of wildcarding Cloudflare
*.r2.cloudflarestorage.com allows egress to any Cloudflare R2 customer's bucket. Pin the two Docker Hub buckets explicitly so the allowlist only covers Docker Inc's account.
1 parent 8096258 commit 1a81afc

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,17 +395,22 @@ jobs:
395395
deploy-on-self-hosted-vm: true
396396
egress-policy: block
397397
disable-telemetry: true
398+
# The two r2.cloudflarestorage.com entries are Docker Hub's
399+
# R2 buckets (layers and images). The hashed subdomains are
400+
# Docker Inc's Cloudflare account IDs -- stable per-account
401+
# but not self-describing; update if Docker Hub reshards.
398402
allowed-endpoints: >
403+
1ede90a8395416f286ba9f692dc6bacf.r2.cloudflarestorage.com:443
399404
api.github.com:443
400405
auth.docker.io:443
406+
docker-images-prod.6aa30f8b08e16409b46e0173d6de2f56.r2.cloudflarestorage.com:443
401407
github.com:443
402408
gcr.io:443
403409
production.cloudflare.docker.com:443
404410
proxy.golang.org:443
405411
registry-1.docker.io:443
406412
storage.googleapis.com:443
407413
sum.golang.org:443
408-
*.r2.cloudflarestorage.com:443
409414
410415
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
411416
with:

0 commit comments

Comments
 (0)