Repository navigation
docs: add Workers R2 Storage Read to the deploy token's permissions - #87
Open
selfie-bot wants to merge 1 commit into
Open
selfie-bot wants to merge 1 commit into
selfie-bot wants to merge 1 commit into
Conversation
This was referenced Nov 20, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The App production release dispatch after #85 (run 44678811328) failed in
wrangler deploywithA request to the Cloudflare API (/accounts/…/r2/buckets/selfie-blobs) failed. Authentication error [code: 10000]. The deploy token has no R2 permission. Until #85 it didn't need one.Wrangler 4.156.2 checks each R2 binding before it deploys. If the live Worker already binds
BLOBSto the samebucket_name, wrangler reuses that binding and makes no API call (R2Handler.canInherit). Otherwise it callsGET /r2/buckets/<name>to see whether the bucket exists, and only a "not found" (code 10006) lets the deploy continue. #85 movedBLOBSfromselfie-hackathon-imagestoselfie-blobs, so this was the first deploy to make that call. Cloudflare's API schema says the call needscom.cloudflare.edge.r2.bucket.read, which comes with the Workers R2 Storage Read token group.This PR doesn't fix the deploy on its own. A maintainer has to add Workers R2 Storage Read (account-wide) to
CLOUDFLARE_API_TOKENand dispatch the release again. This change records that permission in OPERATIONS.md's list of the token's exact permissions, so a rotated token keeps it. #85 also noted that a futurepreflightcheck of the bucket'sr2.devaccess would need the same read permission.Refs #86 — automated triage