Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CloudFront origin configuration and HTTPS #152

Closed
jponge opened this issue Feb 19, 2015 · 5 comments
Closed

CloudFront origin configuration and HTTPS #152

jponge opened this issue Feb 19, 2015 · 5 comments

Comments

@jponge
Copy link

jponge commented Feb 19, 2015

s3_website currently configures a CloudFront distribution with a S3 bucket origin.

However, the origin protocol policy is set by the tool to Match Viewer instead of HTTP only.

This is a problem because HTTPS connections will then trigger HTTPS connections between CloudFront and S3. This causes an error as S3 buckets configured as websites are only reachable through HTTP.

@laurilehmijoki
Copy link
Owner

If HTTP only is always the best option for s3_website users, then we should change origin protocol policy to that.

Can we be sure that it is always the best option?

@jponge
Copy link
Author

jponge commented Feb 19, 2015

The problem is that S3 does not support HTTPS, so a CloudFront distribution that has a Match Viewer policy will always result in an error.

@laurilehmijoki
Copy link
Owner

Okay, now I understand perfectly.

I just upgraded the configure-s3-website gem and added it into the s3_website version 2.8.1.

Does that version solve this issue?

@jponge
Copy link
Author

jponge commented Feb 20, 2015 via email

@laurilehmijoki
Copy link
Owner

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants