Skip to content

Support R2 URLs with jurisdictions - #815

Merged
alamb merged 1 commit into
apache:mainfrom
Kharacternyk:main
Aug 17, 2026
Merged

alamb merged 1 commit into
apache:mainfrom
Kharacternyk:main

Conversation

@Kharacternyk

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #814.

Rationale for this change

Jurisdiction-restricted buckets on R2 are only accessible through special URLs, which are not currently accepted by the parser. Currently there are only two jurisdictions, eu and fedramp, but there may be more in the future, so I've kept the pattern general.

What changes are included in this PR?

Extended the URL parser.

Are there any user-facing changes?

Yes, valid R2 URLs for jurisdiction-restricted buckets no longer fail to be parsed. I've updated the relevant doc comment.

@Kharacternyk

Copy link
Copy Markdown
Contributor Author

The CI fail appears unrelated to the changes here

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me -- thank you @Kharacternyk

@alamb
alamb merged commit f5b61ab into apache:main Aug 17, 2026
13 of 14 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.

Support URLs for jurisdiction-restricted buckets on R2

2 participants