Skip to content

Allow populating R2 when the domain is protected by Cloudflare Access#1261

Merged
petebacondarwin merged 2 commits into
mainfrom
vicb/r2-access
May 14, 2026
Merged

Allow populating R2 when the domain is protected by Cloudflare Access#1261
petebacondarwin merged 2 commits into
mainfrom
vicb/r2-access

Conversation

@vicb
Copy link
Copy Markdown
Contributor

@vicb vicb commented May 11, 2026

fixes #1171

You need to:

  • create a "Service Auth" policy for "open-next-cache-populate.<account>.workers.dev"
  • add an "Include" rule for "Any Access Service Token" or for a given service token ("Service Token")
  • populate the env variables CLOUDFLARE_ACCESS_CLIENT_ID and CLOUDFLARE_ACCESS_CLIENT_SECRET

Open in Devin Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 11, 2026

🦋 Changeset detected

Latest commit: 348dd6b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@opennextjs/cloudflare Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 11, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@opennextjs/cloudflare@1261

commit: 348dd6b

devin-ai-integration[bot]

This comment was marked as resolved.

@petebacondarwin petebacondarwin merged commit 780dd4f into main May 14, 2026
8 checks passed
@petebacondarwin petebacondarwin deleted the vicb/r2-access branch May 14, 2026 12:52
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.

[BUG] v1.18.0 breaks R2 Cache population

2 participants