-
Notifications
You must be signed in to change notification settings - Fork 4k
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
fix(cloudfront): Use regional endpoint for S3 bucket origins #2554
Merged
RomainMuller
merged 2 commits into
master
from
rmuller/fix-cloudfront-s3-origin-domainname
May 21, 2019
Merged
fix(cloudfront): Use regional endpoint for S3 bucket origins #2554
RomainMuller
merged 2 commits into
master
from
rmuller/fix-cloudfront-s3-origin-domainname
May 21, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mindstorms6
approved these changes
May 16, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
The RegionalBucketName is exactly what we want there 👍
rix0rrr
reviewed
May 20, 2019
The variadic signature allowed the method to be invoked with zero arguments, resulting in an unusable ARN. Instead of accepting an array of path elements that will be concatenated, accept only one pattern and use it as-is. BREAKING CHANGE: The `IBucket.arnForObject` method no longer concatenates path fragments on your behalf. Pass the `/`-concatenated key pattern instead.
The regional endpoint has to be used for S3 bucket origins, otherwise CloudFront will receive an HTTP 302 response (redirecting to the regional endpoint), which it will cache. This will lead to users seeing the actual bucket endpoint, instead of it being hidden behind the CloudFront distribution.
1a2e018
to
2b5f07e
Compare
rix0rrr
approved these changes
May 21, 2019
njlynch
added a commit
that referenced
this pull request
Sep 28, 2020
According to the CloudFront docs, the logging bucket should be specified as the bucket domain name. #2554 updated origin buckets to use the regional bucket domain names -- which is correct -- but also incorrectly updated the logging bucket specifications as well. This has a minor impact of being unable to navigate to the logging bucket from the CloudFront console, but otherwise the logs are stored correctly. fixes #10512
mergify bot
pushed a commit
that referenced
this pull request
Sep 29, 2020
According to the CloudFront docs, the logging bucket should be specified as the bucket domain name. #2554 updated origin buckets to use the regional bucket domain names -- which is correct -- but also incorrectly updated the logging bucket specifications as well. This has a minor impact of being unable to navigate to the logging bucket from the CloudFront console, but otherwise the logs are stored correctly. fixes #10512 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This contains
32 commits (if controversial, I can split into three PRs easily - but the two first ones are small enough):1. fix(core): Module detection did not work in Node 12+2. fix(s3): Make IBucket.arnForObject accept only (exactly) one key pattern
3. fix(cloudfront): Use regional endpoint for S3 bucket origins
This PR should be rebased, not squashed.
Pull Request Checklist
design
folderBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.