laurilehmijoki / s3_website

Manage an S3 website: sync, deliver via CloudFront, benefit from advanced S3 website features.
Other
2.24k stars 187 forks source link

S3 listObjects is iterating through whole bucket #321

Open kzonov opened 5 years ago

kzonov commented 5 years ago

Hello, thank you for your library!

We're using it to publish sites to S3 with different prefixes. So we wanted to fine-tune our permissions on the S3 level to isolate those different websites (they are published from different microservices' builds) and came across this comment: https://github.com/laurilehmijoki/s3_website/blob/1636ce1acaa39f06ce9f761e3cc469cc1d4f13ff/src/main/scala/s3/website/S3.scala#L135 which hinders us from making the permissions to be isolated. Also, I would assume that reading all the files could cause performance issues in case of a huge amount of them.

Do you maybe have some plans for improving it?