5 ms·
Unfortunately you can't always keep your bucket name a secret, if you use presigned URLs to let your users directly download objects...
by efge 2y ago
Unfortunately you can't always keep your bucket name a secret, if you use presigned URLs to let your users directly download objects...
- otterley 2y agoIt’s a good idea to use a reverse proxy like Nginx to handle the transfer through an internal redirect, which will hide the bucket name and authentication credentials.
- efge 2y agoBut this means data transiting your network instead of being directly fetched from AWS infrastructure, which for me mostly defeats the purpose of presigned S3 URLs.
- otterley 2y agoIf your server is on AWS, then the egress cost should be identical whether the transfer originates from S3 or EC2. But if your server is on premise and your host charges for egress (or has impactful bandwidth restrictions), I can understand where you're coming from, as you could end up paying twice.
- vbezhenar 2y agoIntroducing complexity, failure point, scalability issue just to work around broken billing. You are probably right but I feel it’s wrong architecturally. I always liked S3 precisely because I could offload file serving to them.