DaaS / Products / Secure OSS Delivery via Cloudflare Worker

Secure OSS Delivery via Cloudflare Worker

Deploy a Cloudflare Worker as an edge proxy in front of an OSS bucket, configure the Worker with OSS endpoint and credentials as environment variables or secrets, and lock down the bucket's referer/hotlink protection so only the Worker's domain can fetch objects—preventing direct public access and leeching.

Products involved

Scenario

Deploy a Cloudflare Worker as an edge proxy in front of an OSS bucket, configure the Worker with OSS endpoint and credentials as environment variables or secrets, and lock down the bucket's referer/hotlink protection so only the Worker's domain can fetch objects—preventing direct public access and leeching.

How the products combine

  1. cloudflare · cloudflare-deploy-worker — Cloudflare — Deploy a Cloudflare Worker
  2. See cloudflare/cloudflare-deploy-worker.

  3. cloudflare · cloudflare-configure-project — Cloudflare — Configure Cloudflare Worker project settings
  4. See cloudflare/cloudflare-configure-project.

  5. oss · oss-configure-security — Object Storage Service — Configure bucket-level security policies
  6. See oss/oss-configure-security.

Typical questions

FAQ

Q: How can I securely proxy a private OSS bucket using a Cloudflare Worker? A: You can secure an OSS bucket by deploying a Cloudflare Worker as an edge proxy in front of it and locking down the bucket so only the Worker's domain can fetch objects. Configure the Worker with your OSS endpoint and credentials as environment variables or secrets, then enable referer or hotlink protection to prevent direct public access and leeching.