You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AWS MediaStore policy generated from the construct allows anonymous requests directly to the AWS MediaStore container, and the requests do not have to come through Amazon CloudFront. It looks like the AWS MediaStore policy code is trying to limit access to just the Amazon CloudFront distribution with this code, but I am still able to curl files directly from the AWS MediaStore container.
…ault.expected.json file for new policy output. Tested deploying and see that requests to MediaStore are not allowed directly, only requests to CloudFront now make it to MediaStore. How it should be working I presume.
…loudfront-mediastore) (#253)
* Fix for issue #252 mediastore policy bug found in the aws-cloudfront-mediastore module
* Fix for issue #252 mediastore policy bug updated the integ.default.expected.json file for new policy output. Tested deploying and see that requests to MediaStore are not allowed directly, only requests to CloudFront now make it to MediaStore. How it should be working I presume.
* Update index.ts
Fix indent spaces.
* Updated integ tests
description of the bug:
The AWS MediaStore policy generated from the construct allows anonymous requests directly to the AWS MediaStore container, and the requests do not have to come through Amazon CloudFront. It looks like the AWS MediaStore policy code is trying to limit access to just the Amazon CloudFront distribution with this code, but I am still able to curl files directly from the AWS MediaStore container.
aws-solutions-constructs/source/patterns/@aws-solutions-constructs/aws-cloudfront-mediastore/lib/index.ts
Lines 86 to 103 in f0a05aa
Reproduction Steps
Deploy the contruct
Upload files to AWS MediaStore container.
curl files directly from MediaStore container.
curl https://somecontainer.data.mediastore.us-east-1.amazonaws.com/my_file
But it should only allow downloading from CFN distribution.
curl https://somecode.cloudfront.com/my_file
How to Fix
I am testing and looking at the code to see what needs to change to fix this.
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: