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

Update ArtifactBucketPolicy to match docs #607

Merged
merged 1 commit into from
Jul 27, 2019

Conversation

gough
Copy link

@gough gough commented Jul 25, 2019

This pull request updates the policy to match what is suggested in the documentation (linked below).

In our testing, the default policy also did not allow uploading of artifacts despite what the policy seemed to allow. However, this could be due to another issue in our configuration.

https://buildkite.com/docs/agent/v3/cli-artifact#using-your-own-private-aws-s3-bucket

@kevinprince
Copy link

It may also be wise to update the documentation to take into account that AWS accounts can now have global S3 public access restrictions which cause a 403 regardless of the IAM permissions and you need to turn on the private ACL.

@lox
Copy link
Contributor

lox commented Jul 26, 2019

Thanks for this @gough!

Worth noting, I don't think we actually set BUILDKITE_ARTIFACT_UPLOAD_DESTINATION anywhere in the elastic stack 🤔

@lox
Copy link
Contributor

lox commented Jul 27, 2019

Let's get this merged and then look at the follow on changes.

@lox lox merged commit eb61550 into buildkite:master Jul 27, 2019
@jufemaiz
Copy link
Contributor

jufemaiz commented Oct 4, 2019

Can confirm this @lox.

@jufemaiz
Copy link
Contributor

jufemaiz commented Oct 4, 2019

Actually digging into this more, the end point (for example, bucket) and the path are not separate for BK.

It would be nice for an agent environment hook to set an ENV, such as BUILDKITE_ARTIFACT_S3_BUCKET, for use by the repositories to create the BUILDKITE_ARTIFACT_UPLOAD_DESTINATION

lox added a commit that referenced this pull request Nov 4, 2019
Update ArtifactBucketPolicy to match docs
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

Successfully merging this pull request may close these issues.

None yet

4 participants