Presigned URLs · Cloudflare R2 docs

who maintains the R2 docs? I've found the code example here is really confusing: https://developers.cloudflare.com/r2/api/s3/presigned-urls/#presigned-url-alternative-with-workers It's titled "Presigned URL alternative with Workers" but then gives a code example of creating a presigned upload PUT url with aws4fetch. In the code it has blank strings for accessKeyId, secretAccessKey, bucketName and accessKeyId and then after the code example it says "Notice the total absence of any configuration or token secrets present in the Worker code".
Cloudflare Docs
Presigned URLs · Cloudflare R2 docs
Presigned URLs are an S3 concept for sharing direct access to your bucket without revealing your token secret. A presigned URL authorizes anyone with the URL to perform an action to the S3 compatibility endpoint for an R2 bucket. By default, the S3 endpoint requires an AUTHORIZATION header signed by your token. Every presigned URL has S3 paramet...
2 Replies
Jun
Jun9mo ago
Hey, thanks for flagging! I can help improve R2 docs - could you help me understand which part of the section was confusing? Or you could create an issue directly here https://github.com/cloudflare/cloudflare-docs/issues
GitHub
Issues · cloudflare/cloudflare-docs
Cloudflare’s documentation. Contribute to cloudflare/cloudflare-docs development by creating an account on GitHub.
sathoro
sathoro9mo ago
well it seems to use a presigned URL

Did you find this page helpful?