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

S3 PUTs will fail if the x-amz-acl header is set to "public-read" #35

Closed
kelleyma49 opened this issue Sep 20, 2019 · 1 comment
Closed

Comments

@kelleyma49
Copy link

Thank you for creating this intriguing and promising piece of software!

This issue might be similar to #20.

I get a 403 error in S3Client::upload_files() unless I remove the "x-amz-acl" header. I'm not an expert in S3 bucket permissions, but it looks to me as though gg requires public access to all S3 uploads? Maybe this should be configurable?

Here's the line in question:

headers_[ "x-amz-acl" ] = "public-read";

@sadjad
Copy link
Member

sadjad commented Sep 20, 2019

Hi @kelleyma49,

Thank you for bringing this into our attention! Actually, gg doesn't require public access for S3 objects, and that line is not necessary at all. I just pushed this change to master.

Please let me know if you encounter any other issues.

Best,
Sadjad

@sadjad sadjad closed this as completed Sep 20, 2019
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