Re:Ask HN: What free or low-cost static site hosting do you ...
by colinbartlett on Wednesday November 23, 2016 @10:48AM
(#13023383)
If I understand what you're saying, if the origin for your Cloudfront distribution is an S3 bucket, the link between S3 and Cloudfront is unencrypted? That seems unimaginable to me.
Re:Ask HN: What free or low-cost static site hosting do you ...
by nitrogen on Wednesday November 23, 2016 @11:03AM
(#13023500)
If the origin is an S3 static website, the link is unencrypted but should run over Amazon's own network. Since Amazon has your S3 and CloudFront data anyway, assuming all CF endpoints are under Amazon's control, you don't lose much by having the S3 origin load over http.
Re:Ask HN: What free or low-cost static site hosting do you ...
by philsnow on Wednesday November 23, 2016 @11:46AM
(#13023810)
What makes you think that when cloudfront requests objects internally from s3, it's using http?
It could just as easily be connecting with s2n and authenticating both endpoints of the connection.
Re:Ask HN: What free or low-cost static site hosting do you ...
by colinbartlett on Wednesday November 23, 2016 @12:17PM
(#13024033)
This article[1] states the following, though it doesn't cite any specific source:
> CloudFront will use encryption when retrieving data from its storage service S3 (Simple Storage Service), so the content is protected all the way from where it is stored to the user's computer, according to Amazon.
1. http://www.computerworld.com/article/2518747/data-center/use...
Re:Ask HN: What free or low-cost static site hosting do you ...
by nitrogen on Wednesday November 23, 2016 @12:05PM
(#13023943)
It says so in the CloudFront distribution setup, when you point it at an s3-website-[region] URL instead of directly at an S3 bucket.
Re:Ask HN: What free or low-cost static site hosting do you ...
by nightcracker on Wednesday November 23, 2016 @11:11AM
(#13023563)
That's just naive with the information we have today. Google thought this too, and the NSA happily used that to eavesdrop.
Re:Ask HN: What free or low-cost static site hosting do you ...
by nitrogen on Wednesday November 23, 2016 @12:04PM
(#13023931)
Eavesdropping on the connection between CF and S3 doesn't say too much about a public static website, though. If you're serving private data, use an S3 bucket directly instead of the S3 static website hosting HTTP server.
Re:Ask HN: What free or low-cost static site hosting do you ...
by bkgunby on Wednesday November 23, 2016 @11:07AM
(#13023529)
Yup. It's fine for most simple sites that don't receive much traffic due to almost nonexistent costs. But I personally don't recommend it when there are many alternatives out there these days. Partly SSL is no SSL imo.
Re:Ask HN: What free or low-cost static site hosting do you ...
by agrajag on Wednesday November 23, 2016 @11:33AM
(#13023713)
You can use SSL with S3 as the backend, you just have to set the distribution origin to s3.amazonaws.com/bucket-name/
Re:Ask HN: What free or low-cost static site hosting do you ...
by bkgunby on Wednesday November 23, 2016 @11:44AM
(#13023794)
Does that work with s3 static websites though? I recall that a different endpoint was needed, and it's only http.
Re:Ask HN: What free or low-cost static site hosting do you ...
by gtsteve on Thursday November 24, 2016 @04:26AM
(#13029265)
The method I described doesn't require you to use a S3 static website. We don't have that option enabled, so the bucket name isn't mysite.com, it's "mysite-html", and the S3 website hosting is not enabled.
CloudFront has its own IAM user that is permitted to access the contents of the bucket, which means that it has to use the API. I don't think it's even possible to access the S3 API without using HTTPS. Therefore I think it is highly unlikely that the connection is unencrypted.
Re:Ask HN: What free or low-cost static site hosting do you ...
by bkgunby on Friday November 25, 2016 @06:50PM
(#13040782)
Awesome! I'm new to AWS, and when I tried to setup a static website using cloudfront + s3, I was only aware of the static website option on s3. This is what the docs uses, and it led me to the wrong path it seems! Thanks
It's not a deal breaker, but it was enough to make me look for alternatives.