nginxinc / nginx-s3-gateway

NGINX S3 Caching Gateway
Apache License 2.0
496 stars 126 forks source link

Support Session based authorization for s3 express one zone #233

Open 4141done opened 4 months ago

4141done commented 4 months ago

Is your feature request related to a problem? Please describe. We implemented support for s3 express one zone and now have an S3_SERVICE configuration variable that we can use as a switch.

One Zone supports a more efficient authentication system described here https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-one-zone.html#s3-express-overview-authorization We should investigate support. Not sure at this point whether it is possible/desirable within the context of this project.

Describe the solution you'd like https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-one-zone.html#s3-express-overview-authorization It's possible we could use https://nginx.org/en/docs/njs/reference.html#periodic_session and https://nginx.org/en/docs/http/ngx_http_js_module.html#js_shared_dict_zone

Describe alternatives you've considered Currently we don't do it and it works fine. This would be an efficiency improvement

Additional context Add any other context or screenshots about the feature request here.