S3Mock icon indicating copy to clipboard operation
S3Mock copied to clipboard

WIP - Enable subdomain access for buckets

Open afranken opened this issue 3 years ago • 0 comments

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

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

afranken avatar Nov 21 '22 20:11 afranken