Skip to content

fix(infra): expose safe Cloudflare R2 denial detail - #129

Merged
EagleFox31 merged 2 commits into
mainfrom
fix/r2-permission-diagnostics
Oct 9, 2026
Merged

EagleFox31 merged 2 commits into
mainfrom
fix/r2-permission-diagnostics

Conversation

@EagleFox31

Copy link
Copy Markdown
Contributor

The R2 provisioner currently collapses Cloudflare 401/403 responses into a generic permission message, hiding the provider error code we need to distinguish token scope, account targeting and endpoint-specific failures.

This keeps credentials secret but includes the first 240 characters of Cloudflare's structured error detail, matching the diagnostic posture already used by Pages/D1.

No token values are logged.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
appfactory-api 7d8eb8a Commit Preview URL

Branch Preview URL
Oct 09 2026, 11:39 AM

@EagleFox31
EagleFox31 merged commit 8bb2bbb into main Oct 9, 2026
7 checks passed
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.

1 participant