Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP - Enable subdomain access for buckets #925

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

afranken
Copy link
Member

@afranken afranken commented Nov 21, 2022

Description

BucketNameFilter will extract the bucket name from subdomain or path and add it as a request attribute for consumption in handler methods.


WIP - not sure yet how I can add this transparently so that handler methods work for both path and subdomain access.
BucketNameFilter will probably have to extract the ObjectKey as well, handler methods need to declare their path value so that it matches paths with and without buckets.

Maybe this will have to be configured at launch time.
Maybe it's not possible without breaking changes.

Related Issue

Fixes #144

Tasks

  • I have signed the CLA.
  • I have written tests and verified that they fail without my change.

@afranken afranken self-assigned this Nov 21, 2022
@afranken afranken force-pushed the 144-subdomain-access-for-buckets branch from 7550de3 to b151edb Compare November 24, 2022 20:52
BucketNameFilter will extract the bucket name from subdomain or path and
add it as a request attribute for consumption in handler methods.

Fixes #144
Trying out if this works (BucketNameFilter will take name from path),
assert that bucket name is the same that is passed in the path to the
handler method.

Fixes #144
@afranken afranken force-pushed the 144-subdomain-access-for-buckets branch from b151edb to 5984ed0 Compare December 21, 2022 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support pathStyleAccess=false / bucket subdomains
1 participant