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

Set bucket CORS parameters on S3 bucket creation #165

Open
kantai opened this issue Dec 18, 2018 · 2 comments
Open

Set bucket CORS parameters on S3 bucket creation #165

kantai opened this issue Dec 18, 2018 · 2 comments
Labels
enhancement Iterations on existing features or infrastructure.

Comments

@kantai
Copy link
Member

kantai commented Dec 18, 2018

On creating a new S3 bucket, the gaia hub should probably set a permissive CORS property for the bucket, using:

https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#putBucketCors-property

This is so that apps can read from that bucket directly if necessary.

@kantai kantai added the enhancement Iterations on existing features or infrastructure. label Dec 18, 2018
@jcnelson
Copy link
Member

jcnelson commented Feb 6, 2019

What would be a good policy? Can you list an example here?

@kantai
Copy link
Member Author

kantai commented Feb 6, 2019

I think this:

     AllowedMethods: [
        "GET", 
        "HEAD"
     ], 
     AllowedOrigins: [
        "*"
     ], 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Iterations on existing features or infrastructure.
Projects
None yet
Development

No branches or pull requests

2 participants