markusahlstrand / cloudworker-proxy

An api gateway for cloudflare workers
MIT License
194 stars 22 forks source link

Support for S3 list operations #128

Closed tomlarkworthy closed 1 year ago

tomlarkworthy commented 1 year ago

Current implementation assume we are always proxying a /{file} operation, but its useful to proxy the whole s3 API sometimes, including support of ListObject which is issued against the bucket resource URL. Current implementation ends up forwarding {file} in this case because the file param is not substituted in the router. This PR enables bucket level operations, which in general are dangerous, thus is it is an opt-in flag

tomlarkworthy commented 1 year ago

note its based off https://github.com/markusahlstrand/cloudworker-proxy/pull/125 so that should be merged first

markusahlstrand commented 1 year ago

I'll go ahead and merge this as well so the diffs in the other PR's are clearer