Skip to content

Give the deploy token R2 read, which wrangler needs to bind a new bucket - #88

Merged
nedtwigg merged 1 commit into
mainfrom
deploy-token-r2
Nov 20, 2026
Merged

nedtwigg merged 1 commit into
mainfrom
deploy-token-r2

Conversation

@nedtwigg

Copy link
Copy Markdown
Member

The first release after #85 failed at Deploy the Worker: wrangler looks up a newly bound R2 bucket (GET /r2/buckets/selfie-blobs), and the deploy token had no R2 permission, so it got Authentication error [code: 10000]. Nothing was deployed.

The token selfie-app-production-github now also holds Workers R2 Storage Read on the account (edited in the dashboard; its value didn't change). The rerun released successfully, with the live smoke checks passing, and images and built Storybook files are served from selfie-blobs.

This records the permission in OPERATIONS.md's list of what the deploy token holds.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@selfie-bot selfie-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#87 (opened by tend triage of #86) makes the same OPERATIONS.md edit, plus a sentence on when wrangler deploy makes the bucket lookup. One of the two can be closed once the other lands. Carry that sentence over here if it's wanted.

@nedtwigg
nedtwigg merged commit 0cf1a1b into main Nov 20, 2026
4 checks passed
@nedtwigg
nedtwigg deleted the deploy-token-r2 branch November 20, 2026 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants