Skip to content

fix: reject bucket paths in Cloudflare R2 endpoints - #98

Merged
Upper9527 merged 1 commit into
mainfrom
codex/r2-endpoint-validation
Oct 21, 2026
Merged

Upper9527 merged 1 commit into
mainfrom
codex/r2-endpoint-validation

Conversation

@Upper9527

Copy link
Copy Markdown
Collaborator

An R2 endpoint containing the bucket path duplicates boto3's Bucket parameter and can fail with NoSuchKey during listing (#33). Reject non-root R2 endpoint paths before constructing a storage session, with an actionable message. Preserve generic S3 reverse-proxy paths. Document account endpoints and region=auto in both guides.

Validation: 7 endpoint tests plus existing bundle tests; no live R2 credentials used. The check covers the misconfiguration visible in #33; a remaining service failure with a correct endpoint still requires its sanitized response.

Refs #33.

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